Update backup: Tablero CDC - Sync Proyecto a Sheet WEBHOOK
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"updatedAt": "2026-06-05T16:40:24.144Z",
|
||||
"updatedAt": "2026-06-05T16:43:17.205Z",
|
||||
"createdAt": "2026-05-27T18:36:03.445Z",
|
||||
"id": "d39DtIUTQzduqX0v",
|
||||
"name": "Tablero CDC - Sync Proyecto a Sheet WEBHOOK",
|
||||
@@ -36,7 +36,7 @@
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"typeVersion": 4.4,
|
||||
"position": [
|
||||
1472,
|
||||
1680,
|
||||
144
|
||||
],
|
||||
"id": "5fdded5f-5a19-4f40-bc75-21ae92ac3df2",
|
||||
@@ -71,7 +71,7 @@
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"typeVersion": 4.4,
|
||||
"position": [
|
||||
1648,
|
||||
1856,
|
||||
272
|
||||
],
|
||||
"id": "d2839f2d-af1f-49ab-bfd6-4c3b76f656ad",
|
||||
@@ -85,7 +85,7 @@
|
||||
"type": "n8n-nodes-base.code",
|
||||
"typeVersion": 2,
|
||||
"position": [
|
||||
1904,
|
||||
2112,
|
||||
272
|
||||
],
|
||||
"id": "1a9e76bd-20f8-481b-82c1-95d631e261ae",
|
||||
@@ -286,7 +286,7 @@
|
||||
"type": "n8n-nodes-base.googleSheets",
|
||||
"typeVersion": 4.7,
|
||||
"position": [
|
||||
2112,
|
||||
2320,
|
||||
272
|
||||
],
|
||||
"id": "d66bf9b4-9694-4f43-8dd6-4e9efe4eece8",
|
||||
@@ -339,7 +339,7 @@
|
||||
"type": "n8n-nodes-base.respondToWebhook",
|
||||
"typeVersion": 1.5,
|
||||
"position": [
|
||||
2320,
|
||||
2528,
|
||||
272
|
||||
],
|
||||
"id": "425a3374-03dc-4424-b089-3d86efbd565e",
|
||||
@@ -349,7 +349,7 @@
|
||||
"parameters": {
|
||||
"content": "Sync Proyecto a Sheet WEBHOOK\n\nFlujo de producción que recibe project_id desde la app Tablero CDC y sincroniza el proyecto con Google Sheet PROYECTOS 2026.\n\nFlujo:\nWebhook -> preparar project_id -> leer projects -> leer project_links -> preparar fila -> upsert en Sheet -> responder webhook.\n\nNotas:\n- La app llama este flujo usando VITE_WEBHOOK_URL.\n- El upsert usa Project ID.\n- Encabezados del Sheet: fila 3.\n- Datos desde fila 4.\n- Filas viejas sin Project ID quedan como histórico.\n- Leer links del proyecto debe tener Always Output Data activo para que proyectos sin links también se peguen.\n\nSi cambia Supabase empresarial/self-hosted, actualizar URL y keys en los HTTP Request.",
|
||||
"height": 672,
|
||||
"width": 2388
|
||||
"width": 2484
|
||||
},
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"typeVersion": 1,
|
||||
@@ -613,6 +613,39 @@
|
||||
],
|
||||
"id": "ec6056cf-99b9-4b23-9ee4-62b71100aaa2",
|
||||
"name": "Code - Buscar fila a eliminar"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"operation": "delete",
|
||||
"documentId": {
|
||||
"__rl": true,
|
||||
"value": "1MfoIs_y7-4ad-g5dxzOo8oAFIdraA_ZT4k-OCGMtT4Q",
|
||||
"mode": "list",
|
||||
"cachedResultName": "APROBACIONES PROYECTOS",
|
||||
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1MfoIs_y7-4ad-g5dxzOo8oAFIdraA_ZT4k-OCGMtT4Q/edit?usp=drivesdk"
|
||||
},
|
||||
"sheetName": {
|
||||
"__rl": true,
|
||||
"value": 1563472127,
|
||||
"mode": "list",
|
||||
"cachedResultName": "PROYECTOS 2026",
|
||||
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1MfoIs_y7-4ad-g5dxzOo8oAFIdraA_ZT4k-OCGMtT4Q/edit#gid=1563472127"
|
||||
}
|
||||
},
|
||||
"type": "n8n-nodes-base.googleSheets",
|
||||
"typeVersion": 4.7,
|
||||
"position": [
|
||||
1376,
|
||||
144
|
||||
],
|
||||
"id": "fc0117c5-9b01-44cc-b8d4-659ed9784fc1",
|
||||
"name": "Sheets - Eliminar fila proyecto",
|
||||
"credentials": {
|
||||
"googleSheetsOAuth2Api": {
|
||||
"id": "K0hDZh3a85MpOHCs",
|
||||
"name": "Google Sheets account 2"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"connections": {
|
||||
@@ -712,6 +745,17 @@
|
||||
]
|
||||
},
|
||||
"Code - Buscar fila a eliminar": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Sheets - Eliminar fila proyecto",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Sheets - Eliminar fila proyecto": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
@@ -735,9 +779,9 @@
|
||||
"meta": {
|
||||
"templateCredsSetupCompleted": true
|
||||
},
|
||||
"versionId": "46652e3e-de02-47d5-b092-a856e3b9eecb",
|
||||
"versionId": "fa1e08a9-e4ff-4a9f-977c-54bf9270a217",
|
||||
"activeVersionId": "17638407-8c4f-4070-b040-a23f2750265e",
|
||||
"versionCounter": 90,
|
||||
"versionCounter": 97,
|
||||
"triggerCount": 1,
|
||||
"shared": [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user