Update backup: Tablero CDC - Sync Proyecto a Sheet WEBHOOK

This commit is contained in:
2026-06-05 16:53:17 +00:00
parent c4ed6d0a85
commit 422bf04c5c
+59 -14
View File
@@ -1,5 +1,5 @@
{ {
"updatedAt": "2026-06-05T16:51:36.308Z", "updatedAt": "2026-06-05T16:53:12.439Z",
"createdAt": "2026-05-27T18:36:03.445Z", "createdAt": "2026-05-27T18:36:03.445Z",
"id": "d39DtIUTQzduqX0v", "id": "d39DtIUTQzduqX0v",
"name": "Tablero CDC - Sync Proyecto a Sheet WEBHOOK", "name": "Tablero CDC - Sync Proyecto a Sheet WEBHOOK",
@@ -36,7 +36,7 @@
"type": "n8n-nodes-base.httpRequest", "type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.4, "typeVersion": 4.4,
"position": [ "position": [
1616, 1824,
288 288
], ],
"id": "5fdded5f-5a19-4f40-bc75-21ae92ac3df2", "id": "5fdded5f-5a19-4f40-bc75-21ae92ac3df2",
@@ -71,7 +71,7 @@
"type": "n8n-nodes-base.httpRequest", "type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.4, "typeVersion": 4.4,
"position": [ "position": [
1856, 2064,
288 288
], ],
"id": "d2839f2d-af1f-49ab-bfd6-4c3b76f656ad", "id": "d2839f2d-af1f-49ab-bfd6-4c3b76f656ad",
@@ -85,7 +85,7 @@
"type": "n8n-nodes-base.code", "type": "n8n-nodes-base.code",
"typeVersion": 2, "typeVersion": 2,
"position": [ "position": [
2112, 2320,
288 288
], ],
"id": "1a9e76bd-20f8-481b-82c1-95d631e261ae", "id": "1a9e76bd-20f8-481b-82c1-95d631e261ae",
@@ -286,7 +286,7 @@
"type": "n8n-nodes-base.googleSheets", "type": "n8n-nodes-base.googleSheets",
"typeVersion": 4.7, "typeVersion": 4.7,
"position": [ "position": [
2320, 2528,
288 288
], ],
"id": "d66bf9b4-9694-4f43-8dd6-4e9efe4eece8", "id": "d66bf9b4-9694-4f43-8dd6-4e9efe4eece8",
@@ -339,7 +339,7 @@
"type": "n8n-nodes-base.respondToWebhook", "type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1.5, "typeVersion": 1.5,
"position": [ "position": [
2528, 2736,
288 288
], ],
"id": "425a3374-03dc-4424-b089-3d86efbd565e", "id": "425a3374-03dc-4424-b089-3d86efbd565e",
@@ -349,7 +349,7 @@
"parameters": { "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.", "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, "height": 672,
"width": 2612 "width": 2692
}, },
"type": "n8n-nodes-base.stickyNote", "type": "n8n-nodes-base.stickyNote",
"typeVersion": 1, "typeVersion": 1,
@@ -462,8 +462,8 @@
"type": "n8n-nodes-base.googleSheets", "type": "n8n-nodes-base.googleSheets",
"typeVersion": 4.7, "typeVersion": 4.7,
"position": [ "position": [
1392, 1616,
96 80
], ],
"id": "fc0117c5-9b01-44cc-b8d4-659ed9784fc1", "id": "fc0117c5-9b01-44cc-b8d4-659ed9784fc1",
"name": "Sheets - Eliminar fila proyecto", "name": "Sheets - Eliminar fila proyecto",
@@ -483,11 +483,45 @@
"type": "n8n-nodes-base.respondToWebhook", "type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1.5, "typeVersion": 1.5,
"position": [ "position": [
1600, 1824,
96 80
], ],
"id": "02857828-6a02-40a6-ade7-203361f0698b", "id": "02857828-6a02-40a6-ade7-203361f0698b",
"name": "Respond - Proyecto eliminado del Sheet" "name": "Respond - Proyecto eliminado del Sheet"
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 3
},
"conditions": [
{
"id": "b513a96e-250f-4730-a926-bcc438daa0c6",
"leftValue": "={{ $json.found }}",
"rightValue": "",
"operator": {
"type": "boolean",
"operation": "true",
"singleValue": true
}
}
],
"combinator": "and"
},
"options": {}
},
"type": "n8n-nodes-base.if",
"typeVersion": 2.3,
"position": [
1392,
96
],
"id": "c281d09b-16da-450b-bcf8-0412f6658dcb",
"name": "IF - Fila encontrada?"
} }
], ],
"connections": { "connections": {
@@ -590,7 +624,7 @@
"main": [ "main": [
[ [
{ {
"node": "Sheets - Eliminar fila proyecto", "node": "IF - Fila encontrada?",
"type": "main", "type": "main",
"index": 0 "index": 0
} }
@@ -607,6 +641,17 @@
} }
] ]
] ]
},
"IF - Fila encontrada?": {
"main": [
[
{
"node": "Sheets - Eliminar fila proyecto",
"type": "main",
"index": 0
}
]
]
} }
}, },
"settings": { "settings": {
@@ -621,9 +666,9 @@
"meta": { "meta": {
"templateCredsSetupCompleted": true "templateCredsSetupCompleted": true
}, },
"versionId": "7733d17d-c669-4e17-84b4-6d47b8fdc548", "versionId": "b48ebc54-f0ab-47d7-a460-bc8dae472c82",
"activeVersionId": "17638407-8c4f-4070-b040-a23f2750265e", "activeVersionId": "17638407-8c4f-4070-b040-a23f2750265e",
"versionCounter": 115, "versionCounter": 121,
"triggerCount": 1, "triggerCount": 1,
"shared": [ "shared": [
{ {