Update backup: Tablero CDC - Sync Proyecto a Sheet WEBHOOK

This commit is contained in:
2026-06-05 16:35:17 +00:00
parent d015f863af
commit 9531f47a7a
+55 -10
View File
@@ -1,5 +1,5 @@
{ {
"updatedAt": "2026-06-05T16:33:58.143Z", "updatedAt": "2026-06-05T16:34:48.840Z",
"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": [
608, 816,
112 112
], ],
"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": [
816, 1024,
112 112
], ],
"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": [
1024, 1232,
112 112
], ],
"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": [
1232, 1440,
112 112
], ],
"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": [
1440, 1648,
112 112
], ],
"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": 496, "height": 496,
"width": 1472 "width": 1604
}, },
"type": "n8n-nodes-base.stickyNote", "type": "n8n-nodes-base.stickyNote",
"typeVersion": 1, "typeVersion": 1,
@@ -359,6 +359,40 @@
], ],
"id": "16a4a31a-a288-45f5-86fd-be4d92a7a2c1", "id": "16a4a31a-a288-45f5-86fd-be4d92a7a2c1",
"name": "Sticky Note" "name": "Sticky Note"
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 3
},
"conditions": [
{
"id": "36231932-b806-4b8a-8d59-e9a74ef4c74b",
"leftValue": "={{ $json.action }}",
"rightValue": "",
"operator": {
"type": "string",
"operation": "equals",
"name": "filter.operator.equals"
}
}
],
"combinator": "and"
},
"options": {}
},
"type": "n8n-nodes-base.if",
"typeVersion": 2.3,
"position": [
624,
112
],
"id": "e891ba4b-23d2-4432-bb33-deffbee8097a",
"name": "IF - Acción eliminar?"
} }
], ],
"connections": { "connections": {
@@ -410,7 +444,7 @@
"main": [ "main": [
[ [
{ {
"node": "Supabase - Leer proyecto", "node": "IF - Acción eliminar?",
"type": "main", "type": "main",
"index": 0 "index": 0
} }
@@ -427,6 +461,17 @@
} }
] ]
] ]
},
"IF - Acción eliminar?": {
"main": [
[
{
"node": "Supabase - Leer proyecto",
"type": "main",
"index": 0
}
]
]
} }
}, },
"settings": { "settings": {
@@ -441,9 +486,9 @@
"meta": { "meta": {
"templateCredsSetupCompleted": true "templateCredsSetupCompleted": true
}, },
"versionId": "5702bf85-2a80-4ba8-b24f-9c53612cf7af", "versionId": "43bcb1e3-2a09-4346-9892-1ea43f8e6fc4",
"activeVersionId": "17638407-8c4f-4070-b040-a23f2750265e", "activeVersionId": "17638407-8c4f-4070-b040-a23f2750265e",
"versionCounter": 61, "versionCounter": 64,
"triggerCount": 1, "triggerCount": 1,
"shared": [ "shared": [
{ {