1993 lines
55 KiB
JSON
1993 lines
55 KiB
JSON
{
|
|
"updatedAt": "2026-06-30T14:17:19.061Z",
|
|
"createdAt": "2026-06-26T16:51:32.231Z",
|
|
"id": "N6WRF7MmEVuh7I7A",
|
|
"name": "Formulario_RD_Seguridad",
|
|
"description": null,
|
|
"active": true,
|
|
"isArchived": false,
|
|
"nodes": [
|
|
{
|
|
"parameters": {
|
|
"documentId": {
|
|
"__rl": true,
|
|
"value": "1KgjH_CtdSwrFKsddnF6s0joAIMkplezQXiZwlM-9GSw",
|
|
"mode": "list",
|
|
"cachedResultName": "Listado de usuarios",
|
|
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1KgjH_CtdSwrFKsddnF6s0joAIMkplezQXiZwlM-9GSw/edit?usp=drivesdk"
|
|
},
|
|
"sheetName": {
|
|
"__rl": true,
|
|
"value": "gid=0",
|
|
"mode": "list",
|
|
"cachedResultName": "RD",
|
|
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1KgjH_CtdSwrFKsddnF6s0joAIMkplezQXiZwlM-9GSw/edit#gid=0"
|
|
},
|
|
"filtersUI": {
|
|
"values": [
|
|
{
|
|
"lookupColumn": "Salida",
|
|
"lookupValue": "={{\n (\n Number($('On form submission').item.json['Mes a validar']) === 12\n ? `12-${Number($now.format('yyyy')) - 1}`\n : `${String($('On form submission').item.json['Mes a validar']).padStart(2,'0')}-${$now.format('yyyy')}`\n )\n}}"
|
|
},
|
|
{
|
|
"lookupColumn": "Salida",
|
|
"lookupValue": "Fecha inválida"
|
|
},
|
|
{
|
|
"lookupColumn": "Salida",
|
|
"lookupValue": "={{\n(() => {\n const mes = Number($('On form submission').item.json['Mes a validar']);\n const year = Number($now.format('yyyy'));\n\n const mm = mes === 12 ? 1 : mes + 1;\n const yyyy = mes === 12 ? year : year;\n\n return String(mm).padStart(2,'0') + '-' + yyyy;\n})()\n}}"
|
|
},
|
|
{
|
|
"lookupColumn": "Salida",
|
|
"lookupValue": "={{ (() => { const mes = Number($('On form submission').item.json['Mes a validar']); const year = Number($now.format('yyyy')); const mm = mes === 12 ? 2 : mes + 1; const yyyy = mes === 12 ? year : year; return String(mm).padStart(2,'0') + '-' + yyyy; })() }}"
|
|
}
|
|
]
|
|
},
|
|
"combineFilters": "OR",
|
|
"options": {}
|
|
},
|
|
"type": "n8n-nodes-base.googleSheets",
|
|
"typeVersion": 4.7,
|
|
"position": [
|
|
976,
|
|
176
|
|
],
|
|
"id": "2a9f021b-7a7b-45c8-898d-31c2f76b0101",
|
|
"name": "Get row(s) in sheet",
|
|
"executeOnce": true,
|
|
"credentials": {
|
|
"googleSheetsOAuth2Api": {
|
|
"id": "K0hDZh3a85MpOHCs",
|
|
"name": "Google Sheets account 2"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"formTitle": "Validar",
|
|
"formDescription": "Validar",
|
|
"formFields": {
|
|
"values": [
|
|
{
|
|
"fieldLabel": "Mes a validar",
|
|
"fieldType": "dropdown",
|
|
"fieldOptions": {
|
|
"values": [
|
|
{
|
|
"option": "01"
|
|
},
|
|
{
|
|
"option": "02"
|
|
},
|
|
{
|
|
"option": "03"
|
|
},
|
|
{
|
|
"option": "04"
|
|
},
|
|
{
|
|
"option": "05"
|
|
},
|
|
{
|
|
"option": "06"
|
|
},
|
|
{
|
|
"option": "07"
|
|
},
|
|
{
|
|
"option": "08"
|
|
},
|
|
{
|
|
"option": "09"
|
|
},
|
|
{
|
|
"option": "10"
|
|
},
|
|
{
|
|
"option": "11"
|
|
},
|
|
{
|
|
"option": "12"
|
|
}
|
|
]
|
|
},
|
|
"requiredField": true
|
|
},
|
|
{
|
|
"fieldLabel": "Archivo",
|
|
"fieldType": "file",
|
|
"multipleFiles": false,
|
|
"acceptFileTypes": ".xlsx, .xls, .csv",
|
|
"requiredField": true
|
|
},
|
|
{
|
|
"fieldLabel": "Nomina",
|
|
"fieldType": "file",
|
|
"acceptFileTypes": ".xlsx, .xls, .csv",
|
|
"requiredField": true
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"ignoreBots": true
|
|
}
|
|
},
|
|
"type": "n8n-nodes-base.formTrigger",
|
|
"typeVersion": 2.3,
|
|
"position": [
|
|
-288,
|
|
272
|
|
],
|
|
"id": "fc3396f8-b4aa-409b-a2f5-c96bf84c7dc0",
|
|
"name": "On form submission",
|
|
"webhookId": "4358d646-0c1b-4ac6-b476-70e58e75aba5"
|
|
},
|
|
{
|
|
"parameters": {
|
|
"operation": "clear",
|
|
"documentId": {
|
|
"__rl": true,
|
|
"value": "18VmaHViUAZWveaULQsFgWXaztke82lo_Bll_j7X2EVg",
|
|
"mode": "list",
|
|
"cachedResultName": "ComparacionTSS",
|
|
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/18VmaHViUAZWveaULQsFgWXaztke82lo_Bll_j7X2EVg/edit?usp=drivesdk"
|
|
},
|
|
"sheetName": {
|
|
"__rl": true,
|
|
"value": "Constancia de Recepcion - TSS D",
|
|
"mode": "name"
|
|
}
|
|
},
|
|
"type": "n8n-nodes-base.googleSheets",
|
|
"typeVersion": 4.7,
|
|
"position": [
|
|
0,
|
|
0
|
|
],
|
|
"id": "27dbff97-9bf0-450d-8108-9384945f346e",
|
|
"name": "Clear sheet",
|
|
"executeOnce": true,
|
|
"credentials": {
|
|
"googleSheetsOAuth2Api": {
|
|
"id": "K0hDZh3a85MpOHCs",
|
|
"name": "Google Sheets account 2"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"documentId": {
|
|
"__rl": true,
|
|
"value": "1uyoEU47L5me3FfIdmUjJ26sfbqbyvR-TMw15i26MbFE",
|
|
"mode": "list",
|
|
"cachedResultName": "Listado completo",
|
|
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1uyoEU47L5me3FfIdmUjJ26sfbqbyvR-TMw15i26MbFE/edit?usp=drivesdk"
|
|
},
|
|
"sheetName": {
|
|
"__rl": true,
|
|
"value": 960593395,
|
|
"mode": "list",
|
|
"cachedResultName": "Hoja 2",
|
|
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1uyoEU47L5me3FfIdmUjJ26sfbqbyvR-TMw15i26MbFE/edit#gid=960593395"
|
|
},
|
|
"options": {}
|
|
},
|
|
"type": "n8n-nodes-base.googleSheets",
|
|
"typeVersion": 4.7,
|
|
"position": [
|
|
976,
|
|
352
|
|
],
|
|
"id": "62530240-f55b-4920-bd92-c7c8930694b5",
|
|
"name": "Get row(s) in sheet1",
|
|
"executeOnce": true,
|
|
"credentials": {
|
|
"googleSheetsOAuth2Api": {
|
|
"id": "K0hDZh3a85MpOHCs",
|
|
"name": "Google Sheets account 2"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"mode": "combine",
|
|
"advanced": true,
|
|
"mergeByFields": {
|
|
"values": [
|
|
{
|
|
"field1": "ID/Cedula",
|
|
"field2": "cedulas"
|
|
}
|
|
]
|
|
},
|
|
"joinMode": "keepNonMatches",
|
|
"outputDataFrom": "input2",
|
|
"options": {}
|
|
},
|
|
"type": "n8n-nodes-base.merge",
|
|
"typeVersion": 3.2,
|
|
"position": [
|
|
1280,
|
|
256
|
|
],
|
|
"id": "1ae390e9-1fdf-492e-9347-6abf2feb1739",
|
|
"name": "Merge"
|
|
},
|
|
{
|
|
"parameters": {
|
|
"sendTo": "lmatos@gomezleemarketing.com",
|
|
"subject": "Empleados en TSS a Validar",
|
|
"emailType": "text",
|
|
"message": "=Hola Luis,\n\nAqui el listado de usuarios a validar segun el reporte de TSS y BambooHR:\n\n{{ $items().map(i => i.json.cedulas).join(\"\\n\") }}\n\n\nGracias,",
|
|
"options": {}
|
|
},
|
|
"type": "n8n-nodes-base.gmail",
|
|
"typeVersion": 2.2,
|
|
"position": [
|
|
1520,
|
|
256
|
|
],
|
|
"id": "9d93079e-1e68-4a73-9b4d-fbe8f1281623",
|
|
"name": "Send a message",
|
|
"webhookId": "4ed1ac2e-fdba-4b3b-8783-1e692ee4383f",
|
|
"executeOnce": true,
|
|
"credentials": {
|
|
"gmailOAuth2": {
|
|
"id": "UDcO1FLJqA453V2D",
|
|
"name": "Gmail account 3"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"operation": "update",
|
|
"fileId": {
|
|
"__rl": true,
|
|
"value": "1iHdla1UizVBb2lVGnmMCsefE_pZVlIFX3hfh-nYVDf0",
|
|
"mode": "list",
|
|
"cachedResultName": "Nomina diciembre",
|
|
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1iHdla1UizVBb2lVGnmMCsefE_pZVlIFX3hfh-nYVDf0/edit?usp=drivesdk"
|
|
},
|
|
"changeFileContent": true,
|
|
"inputDataFieldName": "Nomina",
|
|
"options": {}
|
|
},
|
|
"type": "n8n-nodes-base.googleDrive",
|
|
"typeVersion": 3,
|
|
"position": [
|
|
-32,
|
|
544
|
|
],
|
|
"id": "ec24bcbb-df33-4a76-bb19-04d7565a3923",
|
|
"name": "Update file",
|
|
"credentials": {
|
|
"googleDriveOAuth2Api": {
|
|
"id": "g23xdGLZRzBGqKgH",
|
|
"name": "Isaac - Google Drive"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"url": "=https://sheets.googleapis.com/v4/spreadsheets/{{ $json.id }}?fields=sheets(properties(title,sheetId))",
|
|
"authentication": "predefinedCredentialType",
|
|
"nodeCredentialType": "googleDriveOAuth2Api",
|
|
"options": {}
|
|
},
|
|
"type": "n8n-nodes-base.httpRequest",
|
|
"typeVersion": 4.3,
|
|
"position": [
|
|
240,
|
|
544
|
|
],
|
|
"id": "b2a76830-5ab8-4fa6-abf5-3e2f707b35ec",
|
|
"name": "HTTP Request",
|
|
"credentials": {
|
|
"googleDriveOAuth2Api": {
|
|
"id": "g23xdGLZRzBGqKgH",
|
|
"name": "Isaac - Google Drive"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"options": {}
|
|
},
|
|
"type": "n8n-nodes-base.splitInBatches",
|
|
"typeVersion": 3,
|
|
"position": [
|
|
592,
|
|
544
|
|
],
|
|
"id": "4a8dc180-473d-46d9-91e7-f5520ab2fde1",
|
|
"name": "Loop Over Items"
|
|
},
|
|
{
|
|
"parameters": {},
|
|
"type": "n8n-nodes-base.wait",
|
|
"typeVersion": 1.1,
|
|
"position": [
|
|
1296,
|
|
656
|
|
],
|
|
"id": "de04ba77-94b9-42ed-9b03-a24c2d679a3f",
|
|
"name": "Wait",
|
|
"webhookId": "85ae2fd7-5ff3-407f-bab2-f8d167946524"
|
|
},
|
|
{
|
|
"parameters": {
|
|
"documentId": {
|
|
"__rl": true,
|
|
"value": "1iHdla1UizVBb2lVGnmMCsefE_pZVlIFX3hfh-nYVDf0",
|
|
"mode": "list",
|
|
"cachedResultName": "Nomina diciembre",
|
|
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1iHdla1UizVBb2lVGnmMCsefE_pZVlIFX3hfh-nYVDf0/edit?usp=drivesdk"
|
|
},
|
|
"sheetName": {
|
|
"__rl": true,
|
|
"value": "={{ $json.sheetId }}",
|
|
"mode": "id"
|
|
},
|
|
"options": {}
|
|
},
|
|
"type": "n8n-nodes-base.googleSheets",
|
|
"typeVersion": 4.7,
|
|
"position": [
|
|
784,
|
|
672
|
|
],
|
|
"id": "f949779c-78be-431d-9329-fb0f3e669400",
|
|
"name": "Get row(s) in sheet2",
|
|
"credentials": {
|
|
"googleSheetsOAuth2Api": {
|
|
"id": "K0hDZh3a85MpOHCs",
|
|
"name": "Google Sheets account 2"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"operation": "append",
|
|
"documentId": {
|
|
"__rl": true,
|
|
"value": "1uyoEU47L5me3FfIdmUjJ26sfbqbyvR-TMw15i26MbFE",
|
|
"mode": "list",
|
|
"cachedResultName": "Listado completo",
|
|
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1uyoEU47L5me3FfIdmUjJ26sfbqbyvR-TMw15i26MbFE/edit?usp=drivesdk"
|
|
},
|
|
"sheetName": {
|
|
"__rl": true,
|
|
"value": "gid=0",
|
|
"mode": "list",
|
|
"cachedResultName": "Hoja 1",
|
|
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1uyoEU47L5me3FfIdmUjJ26sfbqbyvR-TMw15i26MbFE/edit#gid=0"
|
|
},
|
|
"columns": {
|
|
"mappingMode": "defineBelow",
|
|
"value": {
|
|
"cedula": "={{\n $json[\"CEDULA\"]\n .replace(/\\D/g, '')\n .replace(/^(\\d{3})(\\d+)(\\d)$/, \"$1-$2-$3\")\n}}"
|
|
},
|
|
"matchingColumns": [
|
|
"ID"
|
|
],
|
|
"schema": [
|
|
{
|
|
"id": "cedula",
|
|
"displayName": "cedula",
|
|
"required": false,
|
|
"defaultMatch": false,
|
|
"display": true,
|
|
"type": "string",
|
|
"canBeUsedToMatch": true,
|
|
"removed": false
|
|
}
|
|
],
|
|
"attemptToConvertTypes": false,
|
|
"convertFieldsToString": false
|
|
},
|
|
"options": {
|
|
"cellFormat": "RAW"
|
|
}
|
|
},
|
|
"type": "n8n-nodes-base.googleSheets",
|
|
"typeVersion": 4.7,
|
|
"position": [
|
|
960,
|
|
672
|
|
],
|
|
"id": "9b1f014a-a27e-4261-a2bb-6c2a47bf8bc3",
|
|
"name": "Append row in sheet1",
|
|
"credentials": {
|
|
"googleSheetsOAuth2Api": {
|
|
"id": "K0hDZh3a85MpOHCs",
|
|
"name": "Google Sheets account 2"
|
|
}
|
|
},
|
|
"onError": "continueErrorOutput"
|
|
},
|
|
{
|
|
"parameters": {
|
|
"jsCode": "const sheets = $json.sheets || [];\nreturn sheets.map(s => ({\n json: {\n sheetTitle: s.properties.title,\n sheetId: s.properties.sheetId,\n }\n}));"
|
|
},
|
|
"type": "n8n-nodes-base.code",
|
|
"typeVersion": 2,
|
|
"position": [
|
|
400,
|
|
544
|
|
],
|
|
"id": "c8dde485-4ca9-49c3-8ff1-346aeeec20db",
|
|
"name": "Code in JavaScript1"
|
|
},
|
|
{
|
|
"parameters": {
|
|
"documentId": {
|
|
"__rl": true,
|
|
"value": "1uyoEU47L5me3FfIdmUjJ26sfbqbyvR-TMw15i26MbFE",
|
|
"mode": "list",
|
|
"cachedResultName": "Listado completo",
|
|
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1uyoEU47L5me3FfIdmUjJ26sfbqbyvR-TMw15i26MbFE/edit?usp=drivesdk"
|
|
},
|
|
"sheetName": {
|
|
"__rl": true,
|
|
"value": "gid=0",
|
|
"mode": "list",
|
|
"cachedResultName": "Hoja 1",
|
|
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1uyoEU47L5me3FfIdmUjJ26sfbqbyvR-TMw15i26MbFE/edit#gid=0"
|
|
},
|
|
"options": {}
|
|
},
|
|
"type": "n8n-nodes-base.googleSheets",
|
|
"typeVersion": 4.7,
|
|
"position": [
|
|
992,
|
|
528
|
|
],
|
|
"id": "db3dd804-9c24-4b90-8c65-b38c761e02b2",
|
|
"name": "Get row(s) in sheet3",
|
|
"executeOnce": true,
|
|
"credentials": {
|
|
"googleSheetsOAuth2Api": {
|
|
"id": "K0hDZh3a85MpOHCs",
|
|
"name": "Google Sheets account 2"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"mode": "combine",
|
|
"advanced": true,
|
|
"mergeByFields": {
|
|
"values": [
|
|
{
|
|
"field1": "cedulas",
|
|
"field2": "cedula"
|
|
}
|
|
]
|
|
},
|
|
"joinMode": "keepNonMatches",
|
|
"outputDataFrom": "input1",
|
|
"options": {}
|
|
},
|
|
"type": "n8n-nodes-base.merge",
|
|
"typeVersion": 3.2,
|
|
"position": [
|
|
1280,
|
|
448
|
|
],
|
|
"id": "24056aa6-e76d-4bce-bc81-46f59b798914",
|
|
"name": "Merge1"
|
|
},
|
|
{
|
|
"parameters": {
|
|
"operation": "clear",
|
|
"documentId": {
|
|
"__rl": true,
|
|
"value": "1uyoEU47L5me3FfIdmUjJ26sfbqbyvR-TMw15i26MbFE",
|
|
"mode": "list",
|
|
"cachedResultName": "Listado completo",
|
|
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1uyoEU47L5me3FfIdmUjJ26sfbqbyvR-TMw15i26MbFE/edit?usp=drivesdk"
|
|
},
|
|
"sheetName": {
|
|
"__rl": true,
|
|
"value": "gid=0",
|
|
"mode": "list",
|
|
"cachedResultName": "Hoja 1",
|
|
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1uyoEU47L5me3FfIdmUjJ26sfbqbyvR-TMw15i26MbFE/edit#gid=0"
|
|
},
|
|
"keepFirstRow": true
|
|
},
|
|
"type": "n8n-nodes-base.googleSheets",
|
|
"typeVersion": 4.7,
|
|
"position": [
|
|
1024,
|
|
0
|
|
],
|
|
"id": "0a888613-9ccb-43ae-9cf9-3aba4d5389cf",
|
|
"name": "Clear sheet1",
|
|
"executeOnce": true,
|
|
"credentials": {
|
|
"googleSheetsOAuth2Api": {
|
|
"id": "K0hDZh3a85MpOHCs",
|
|
"name": "Google Sheets account 2"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"sendTo": "lmatos@gomezleemarketing.com",
|
|
"subject": "Empleados en TSS a Validar",
|
|
"emailType": "text",
|
|
"message": "=Hola Luis,\n\nAqui el listado de usuarios a validar segun el reporte de TSS y Nomina:\n\n{{ $items().map(i => i.json.cedulas).join(\"\\n\") }}\n\nGracias,",
|
|
"options": {}
|
|
},
|
|
"type": "n8n-nodes-base.gmail",
|
|
"typeVersion": 2.2,
|
|
"position": [
|
|
1536,
|
|
448
|
|
],
|
|
"id": "ad951cf3-17d3-4c35-abd1-3e7eb3cbafaf",
|
|
"name": "Send a message1",
|
|
"webhookId": "a7d40884-8a32-40ef-8ff5-3d15c85aaf88",
|
|
"executeOnce": true,
|
|
"credentials": {
|
|
"gmailOAuth2": {
|
|
"id": "UDcO1FLJqA453V2D",
|
|
"name": "Gmail account 3"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"operation": "update",
|
|
"fileId": {
|
|
"__rl": true,
|
|
"value": "18VmaHViUAZWveaULQsFgWXaztke82lo_Bll_j7X2EVg",
|
|
"mode": "list",
|
|
"cachedResultName": "ComparacionTSS",
|
|
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/18VmaHViUAZWveaULQsFgWXaztke82lo_Bll_j7X2EVg/edit?usp=drivesdk"
|
|
},
|
|
"changeFileContent": true,
|
|
"inputDataFieldName": "Archivo",
|
|
"newUpdatedFileName": "=",
|
|
"options": {
|
|
"useContentAsIndexableText": false
|
|
}
|
|
},
|
|
"type": "n8n-nodes-base.googleDrive",
|
|
"typeVersion": 3,
|
|
"position": [
|
|
304,
|
|
0
|
|
],
|
|
"id": "20674586-df44-43fc-832f-ac372d78fff0",
|
|
"name": "Update file1",
|
|
"credentials": {
|
|
"googleDriveOAuth2Api": {
|
|
"id": "g23xdGLZRzBGqKgH",
|
|
"name": "Isaac - Google Drive"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"operation": "clear",
|
|
"documentId": {
|
|
"__rl": true,
|
|
"value": "1uyoEU47L5me3FfIdmUjJ26sfbqbyvR-TMw15i26MbFE",
|
|
"mode": "list",
|
|
"cachedResultName": "Listado completo",
|
|
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1uyoEU47L5me3FfIdmUjJ26sfbqbyvR-TMw15i26MbFE/edit?usp=drivesdk"
|
|
},
|
|
"sheetName": {
|
|
"__rl": true,
|
|
"value": 960593395,
|
|
"mode": "list",
|
|
"cachedResultName": "Hoja 2",
|
|
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1uyoEU47L5me3FfIdmUjJ26sfbqbyvR-TMw15i26MbFE/edit#gid=960593395"
|
|
},
|
|
"keepFirstRow": true
|
|
},
|
|
"type": "n8n-nodes-base.googleSheets",
|
|
"typeVersion": 4.7,
|
|
"position": [
|
|
144,
|
|
0
|
|
],
|
|
"id": "313c9879-a768-462b-adad-6ab22dd44fbb",
|
|
"name": "Clear sheet2",
|
|
"executeOnce": true,
|
|
"credentials": {
|
|
"googleSheetsOAuth2Api": {
|
|
"id": "K0hDZh3a85MpOHCs",
|
|
"name": "Google Sheets account 2"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"documentId": {
|
|
"__rl": true,
|
|
"value": "18VmaHViUAZWveaULQsFgWXaztke82lo_Bll_j7X2EVg",
|
|
"mode": "list",
|
|
"cachedResultName": "ComparacionTSS",
|
|
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/18VmaHViUAZWveaULQsFgWXaztke82lo_Bll_j7X2EVg/edit?usp=drivesdk"
|
|
},
|
|
"sheetName": {
|
|
"__rl": true,
|
|
"value": "Constancia de Recepcion - TSS D",
|
|
"mode": "name"
|
|
},
|
|
"options": {}
|
|
},
|
|
"type": "n8n-nodes-base.googleSheets",
|
|
"typeVersion": 4.7,
|
|
"position": [
|
|
464,
|
|
0
|
|
],
|
|
"id": "94229a04-c836-4ceb-9aa2-1133132c6a73",
|
|
"name": "Get row(s) in sheet4",
|
|
"credentials": {
|
|
"googleSheetsOAuth2Api": {
|
|
"id": "K0hDZh3a85MpOHCs",
|
|
"name": "Google Sheets account 2"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"assignments": {
|
|
"assignments": [
|
|
{
|
|
"id": "eb0a586c-64e0-442e-b5c1-111f4f1e6810",
|
|
"name": "cedulas",
|
|
"value": "={{\n String($json[\"NO_DOCUMENTO\"])\n .replace(/\\D/g, '')\n .padStart(11, '0')\n .replace(/^(\\d{3})(\\d{7})(\\d)$/, \"$1-$2-$3\")\n}}",
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"options": {}
|
|
},
|
|
"type": "n8n-nodes-base.set",
|
|
"typeVersion": 3.4,
|
|
"position": [
|
|
624,
|
|
0
|
|
],
|
|
"id": "9468739e-357d-4e07-8623-154eef2bb463",
|
|
"name": "Edit Fields"
|
|
},
|
|
{
|
|
"parameters": {
|
|
"operation": "append",
|
|
"documentId": {
|
|
"__rl": true,
|
|
"value": "1uyoEU47L5me3FfIdmUjJ26sfbqbyvR-TMw15i26MbFE",
|
|
"mode": "list",
|
|
"cachedResultName": "Listado completo",
|
|
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1uyoEU47L5me3FfIdmUjJ26sfbqbyvR-TMw15i26MbFE/edit?usp=drivesdk"
|
|
},
|
|
"sheetName": {
|
|
"__rl": true,
|
|
"value": 960593395,
|
|
"mode": "list",
|
|
"cachedResultName": "Hoja 2",
|
|
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1uyoEU47L5me3FfIdmUjJ26sfbqbyvR-TMw15i26MbFE/edit#gid=960593395"
|
|
},
|
|
"columns": {
|
|
"mappingMode": "autoMapInputData",
|
|
"value": {},
|
|
"matchingColumns": [
|
|
"cedulas"
|
|
],
|
|
"schema": [
|
|
{
|
|
"id": "cedulas",
|
|
"displayName": "cedulas",
|
|
"required": false,
|
|
"defaultMatch": false,
|
|
"display": true,
|
|
"type": "string",
|
|
"canBeUsedToMatch": true,
|
|
"removed": false
|
|
}
|
|
],
|
|
"attemptToConvertTypes": false,
|
|
"convertFieldsToString": false
|
|
},
|
|
"options": {}
|
|
},
|
|
"type": "n8n-nodes-base.googleSheets",
|
|
"typeVersion": 4.7,
|
|
"position": [
|
|
832,
|
|
0
|
|
],
|
|
"id": "36338403-5ee6-4059-8dcf-76ae6b0b1a4a",
|
|
"name": "Append row in sheet",
|
|
"credentials": {
|
|
"googleSheetsOAuth2Api": {
|
|
"id": "K0hDZh3a85MpOHCs",
|
|
"name": "Google Sheets account 2"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"connections": {
|
|
"On form submission": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Update file",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Clear sheet",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Get row(s) in sheet": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Merge",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Clear sheet": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Clear sheet2",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Get row(s) in sheet1": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Merge",
|
|
"type": "main",
|
|
"index": 1
|
|
},
|
|
{
|
|
"node": "Merge1",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Merge": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Send a message",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Update file": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "HTTP Request",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"HTTP Request": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Code in JavaScript1",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Loop Over Items": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Get row(s) in sheet",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Get row(s) in sheet1",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Get row(s) in sheet3",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "Get row(s) in sheet2",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Wait": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Loop Over Items",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Get row(s) in sheet2": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Append row in sheet1",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Append row in sheet1": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Wait",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Code in JavaScript1": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Loop Over Items",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Get row(s) in sheet3": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Merge1",
|
|
"type": "main",
|
|
"index": 1
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Merge1": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Send a message1",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Update file1": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Get row(s) in sheet4",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Clear sheet2": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Update file1",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Get row(s) in sheet4": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Edit Fields",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Edit Fields": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Append row in sheet",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Append row in sheet": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Clear sheet1",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"settings": {
|
|
"executionOrder": "v1",
|
|
"binaryMode": "separate"
|
|
},
|
|
"staticData": null,
|
|
"meta": {
|
|
"templateCredsSetupCompleted": true
|
|
},
|
|
"versionId": "5445da06-fd76-4504-a839-8e19aeea32fb",
|
|
"activeVersionId": "5445da06-fd76-4504-a839-8e19aeea32fb",
|
|
"versionCounter": 18,
|
|
"triggerCount": 1,
|
|
"shared": [
|
|
{
|
|
"updatedAt": "2026-06-26T16:51:32.247Z",
|
|
"createdAt": "2026-06-26T16:51:32.247Z",
|
|
"role": "workflow:owner",
|
|
"workflowId": "N6WRF7MmEVuh7I7A",
|
|
"projectId": "PJpTANzTXIFibWsW",
|
|
"project": {
|
|
"updatedAt": "2026-04-22T14:25:09.686Z",
|
|
"createdAt": "2026-04-22T14:22:54.790Z",
|
|
"id": "PJpTANzTXIFibWsW",
|
|
"name": "Isaac Aracena <iaracena@gomezleemarketing.com>",
|
|
"type": "personal",
|
|
"icon": null,
|
|
"description": null,
|
|
"creatorId": "0a88c0b1-928e-4412-896e-c5d1c99b2029"
|
|
}
|
|
}
|
|
],
|
|
"tags": [],
|
|
"activeVersion": {
|
|
"updatedAt": "2026-07-02T13:39:55.000Z",
|
|
"createdAt": "2026-06-30T14:17:19.074Z",
|
|
"versionId": "5445da06-fd76-4504-a839-8e19aeea32fb",
|
|
"workflowId": "N6WRF7MmEVuh7I7A",
|
|
"nodes": [
|
|
{
|
|
"parameters": {
|
|
"documentId": {
|
|
"__rl": true,
|
|
"value": "1KgjH_CtdSwrFKsddnF6s0joAIMkplezQXiZwlM-9GSw",
|
|
"mode": "list",
|
|
"cachedResultName": "Listado de usuarios",
|
|
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1KgjH_CtdSwrFKsddnF6s0joAIMkplezQXiZwlM-9GSw/edit?usp=drivesdk"
|
|
},
|
|
"sheetName": {
|
|
"__rl": true,
|
|
"value": "gid=0",
|
|
"mode": "list",
|
|
"cachedResultName": "RD",
|
|
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1KgjH_CtdSwrFKsddnF6s0joAIMkplezQXiZwlM-9GSw/edit#gid=0"
|
|
},
|
|
"filtersUI": {
|
|
"values": [
|
|
{
|
|
"lookupColumn": "Salida",
|
|
"lookupValue": "={{\n (\n Number($('On form submission').item.json['Mes a validar']) === 12\n ? `12-${Number($now.format('yyyy')) - 1}`\n : `${String($('On form submission').item.json['Mes a validar']).padStart(2,'0')}-${$now.format('yyyy')}`\n )\n}}"
|
|
},
|
|
{
|
|
"lookupColumn": "Salida",
|
|
"lookupValue": "Fecha inválida"
|
|
},
|
|
{
|
|
"lookupColumn": "Salida",
|
|
"lookupValue": "={{\n(() => {\n const mes = Number($('On form submission').item.json['Mes a validar']);\n const year = Number($now.format('yyyy'));\n\n const mm = mes === 12 ? 1 : mes + 1;\n const yyyy = mes === 12 ? year : year;\n\n return String(mm).padStart(2,'0') + '-' + yyyy;\n})()\n}}"
|
|
},
|
|
{
|
|
"lookupColumn": "Salida",
|
|
"lookupValue": "={{ (() => { const mes = Number($('On form submission').item.json['Mes a validar']); const year = Number($now.format('yyyy')); const mm = mes === 12 ? 2 : mes + 1; const yyyy = mes === 12 ? year : year; return String(mm).padStart(2,'0') + '-' + yyyy; })() }}"
|
|
}
|
|
]
|
|
},
|
|
"combineFilters": "OR",
|
|
"options": {}
|
|
},
|
|
"type": "n8n-nodes-base.googleSheets",
|
|
"typeVersion": 4.7,
|
|
"position": [
|
|
976,
|
|
176
|
|
],
|
|
"id": "2a9f021b-7a7b-45c8-898d-31c2f76b0101",
|
|
"name": "Get row(s) in sheet",
|
|
"executeOnce": true,
|
|
"credentials": {
|
|
"googleSheetsOAuth2Api": {
|
|
"id": "K0hDZh3a85MpOHCs",
|
|
"name": "Google Sheets account 2"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"formTitle": "Validar",
|
|
"formDescription": "Validar",
|
|
"formFields": {
|
|
"values": [
|
|
{
|
|
"fieldLabel": "Mes a validar",
|
|
"fieldType": "dropdown",
|
|
"fieldOptions": {
|
|
"values": [
|
|
{
|
|
"option": "01"
|
|
},
|
|
{
|
|
"option": "02"
|
|
},
|
|
{
|
|
"option": "03"
|
|
},
|
|
{
|
|
"option": "04"
|
|
},
|
|
{
|
|
"option": "05"
|
|
},
|
|
{
|
|
"option": "06"
|
|
},
|
|
{
|
|
"option": "07"
|
|
},
|
|
{
|
|
"option": "08"
|
|
},
|
|
{
|
|
"option": "09"
|
|
},
|
|
{
|
|
"option": "10"
|
|
},
|
|
{
|
|
"option": "11"
|
|
},
|
|
{
|
|
"option": "12"
|
|
}
|
|
]
|
|
},
|
|
"requiredField": true
|
|
},
|
|
{
|
|
"fieldLabel": "Archivo",
|
|
"fieldType": "file",
|
|
"multipleFiles": false,
|
|
"acceptFileTypes": ".xlsx, .xls, .csv",
|
|
"requiredField": true
|
|
},
|
|
{
|
|
"fieldLabel": "Nomina",
|
|
"fieldType": "file",
|
|
"acceptFileTypes": ".xlsx, .xls, .csv",
|
|
"requiredField": true
|
|
}
|
|
]
|
|
},
|
|
"options": {
|
|
"ignoreBots": true
|
|
}
|
|
},
|
|
"type": "n8n-nodes-base.formTrigger",
|
|
"typeVersion": 2.3,
|
|
"position": [
|
|
-288,
|
|
272
|
|
],
|
|
"id": "fc3396f8-b4aa-409b-a2f5-c96bf84c7dc0",
|
|
"name": "On form submission",
|
|
"webhookId": "4358d646-0c1b-4ac6-b476-70e58e75aba5"
|
|
},
|
|
{
|
|
"parameters": {
|
|
"operation": "clear",
|
|
"documentId": {
|
|
"__rl": true,
|
|
"value": "18VmaHViUAZWveaULQsFgWXaztke82lo_Bll_j7X2EVg",
|
|
"mode": "list",
|
|
"cachedResultName": "ComparacionTSS",
|
|
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/18VmaHViUAZWveaULQsFgWXaztke82lo_Bll_j7X2EVg/edit?usp=drivesdk"
|
|
},
|
|
"sheetName": {
|
|
"__rl": true,
|
|
"value": "Constancia de Recepcion - TSS D",
|
|
"mode": "name"
|
|
}
|
|
},
|
|
"type": "n8n-nodes-base.googleSheets",
|
|
"typeVersion": 4.7,
|
|
"position": [
|
|
0,
|
|
0
|
|
],
|
|
"id": "27dbff97-9bf0-450d-8108-9384945f346e",
|
|
"name": "Clear sheet",
|
|
"executeOnce": true,
|
|
"credentials": {
|
|
"googleSheetsOAuth2Api": {
|
|
"id": "K0hDZh3a85MpOHCs",
|
|
"name": "Google Sheets account 2"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"documentId": {
|
|
"__rl": true,
|
|
"value": "1uyoEU47L5me3FfIdmUjJ26sfbqbyvR-TMw15i26MbFE",
|
|
"mode": "list",
|
|
"cachedResultName": "Listado completo",
|
|
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1uyoEU47L5me3FfIdmUjJ26sfbqbyvR-TMw15i26MbFE/edit?usp=drivesdk"
|
|
},
|
|
"sheetName": {
|
|
"__rl": true,
|
|
"value": 960593395,
|
|
"mode": "list",
|
|
"cachedResultName": "Hoja 2",
|
|
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1uyoEU47L5me3FfIdmUjJ26sfbqbyvR-TMw15i26MbFE/edit#gid=960593395"
|
|
},
|
|
"options": {}
|
|
},
|
|
"type": "n8n-nodes-base.googleSheets",
|
|
"typeVersion": 4.7,
|
|
"position": [
|
|
976,
|
|
352
|
|
],
|
|
"id": "62530240-f55b-4920-bd92-c7c8930694b5",
|
|
"name": "Get row(s) in sheet1",
|
|
"executeOnce": true,
|
|
"credentials": {
|
|
"googleSheetsOAuth2Api": {
|
|
"id": "K0hDZh3a85MpOHCs",
|
|
"name": "Google Sheets account 2"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"mode": "combine",
|
|
"advanced": true,
|
|
"mergeByFields": {
|
|
"values": [
|
|
{
|
|
"field1": "ID/Cedula",
|
|
"field2": "cedulas"
|
|
}
|
|
]
|
|
},
|
|
"joinMode": "keepNonMatches",
|
|
"outputDataFrom": "input2",
|
|
"options": {}
|
|
},
|
|
"type": "n8n-nodes-base.merge",
|
|
"typeVersion": 3.2,
|
|
"position": [
|
|
1280,
|
|
256
|
|
],
|
|
"id": "1ae390e9-1fdf-492e-9347-6abf2feb1739",
|
|
"name": "Merge"
|
|
},
|
|
{
|
|
"parameters": {
|
|
"sendTo": "lmatos@gomezleemarketing.com",
|
|
"subject": "Empleados en TSS a Validar",
|
|
"emailType": "text",
|
|
"message": "=Hola Luis,\n\nAqui el listado de usuarios a validar segun el reporte de TSS y BambooHR:\n\n{{ $items().map(i => i.json.cedulas).join(\"\\n\") }}\n\n\nGracias,",
|
|
"options": {}
|
|
},
|
|
"type": "n8n-nodes-base.gmail",
|
|
"typeVersion": 2.2,
|
|
"position": [
|
|
1520,
|
|
256
|
|
],
|
|
"id": "9d93079e-1e68-4a73-9b4d-fbe8f1281623",
|
|
"name": "Send a message",
|
|
"webhookId": "4ed1ac2e-fdba-4b3b-8783-1e692ee4383f",
|
|
"executeOnce": true,
|
|
"credentials": {
|
|
"gmailOAuth2": {
|
|
"id": "UDcO1FLJqA453V2D",
|
|
"name": "Gmail account 3"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"operation": "update",
|
|
"fileId": {
|
|
"__rl": true,
|
|
"value": "1iHdla1UizVBb2lVGnmMCsefE_pZVlIFX3hfh-nYVDf0",
|
|
"mode": "list",
|
|
"cachedResultName": "Nomina diciembre",
|
|
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1iHdla1UizVBb2lVGnmMCsefE_pZVlIFX3hfh-nYVDf0/edit?usp=drivesdk"
|
|
},
|
|
"changeFileContent": true,
|
|
"inputDataFieldName": "Nomina",
|
|
"options": {}
|
|
},
|
|
"type": "n8n-nodes-base.googleDrive",
|
|
"typeVersion": 3,
|
|
"position": [
|
|
-32,
|
|
544
|
|
],
|
|
"id": "ec24bcbb-df33-4a76-bb19-04d7565a3923",
|
|
"name": "Update file",
|
|
"credentials": {
|
|
"googleDriveOAuth2Api": {
|
|
"id": "g23xdGLZRzBGqKgH",
|
|
"name": "Isaac - Google Drive"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"url": "=https://sheets.googleapis.com/v4/spreadsheets/{{ $json.id }}?fields=sheets(properties(title,sheetId))",
|
|
"authentication": "predefinedCredentialType",
|
|
"nodeCredentialType": "googleDriveOAuth2Api",
|
|
"options": {}
|
|
},
|
|
"type": "n8n-nodes-base.httpRequest",
|
|
"typeVersion": 4.3,
|
|
"position": [
|
|
240,
|
|
544
|
|
],
|
|
"id": "b2a76830-5ab8-4fa6-abf5-3e2f707b35ec",
|
|
"name": "HTTP Request",
|
|
"credentials": {
|
|
"googleDriveOAuth2Api": {
|
|
"id": "g23xdGLZRzBGqKgH",
|
|
"name": "Isaac - Google Drive"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"options": {}
|
|
},
|
|
"type": "n8n-nodes-base.splitInBatches",
|
|
"typeVersion": 3,
|
|
"position": [
|
|
592,
|
|
544
|
|
],
|
|
"id": "4a8dc180-473d-46d9-91e7-f5520ab2fde1",
|
|
"name": "Loop Over Items"
|
|
},
|
|
{
|
|
"parameters": {},
|
|
"type": "n8n-nodes-base.wait",
|
|
"typeVersion": 1.1,
|
|
"position": [
|
|
1296,
|
|
656
|
|
],
|
|
"id": "de04ba77-94b9-42ed-9b03-a24c2d679a3f",
|
|
"name": "Wait",
|
|
"webhookId": "85ae2fd7-5ff3-407f-bab2-f8d167946524"
|
|
},
|
|
{
|
|
"parameters": {
|
|
"documentId": {
|
|
"__rl": true,
|
|
"value": "1iHdla1UizVBb2lVGnmMCsefE_pZVlIFX3hfh-nYVDf0",
|
|
"mode": "list",
|
|
"cachedResultName": "Nomina diciembre",
|
|
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1iHdla1UizVBb2lVGnmMCsefE_pZVlIFX3hfh-nYVDf0/edit?usp=drivesdk"
|
|
},
|
|
"sheetName": {
|
|
"__rl": true,
|
|
"value": "={{ $json.sheetId }}",
|
|
"mode": "id"
|
|
},
|
|
"options": {}
|
|
},
|
|
"type": "n8n-nodes-base.googleSheets",
|
|
"typeVersion": 4.7,
|
|
"position": [
|
|
784,
|
|
672
|
|
],
|
|
"id": "f949779c-78be-431d-9329-fb0f3e669400",
|
|
"name": "Get row(s) in sheet2",
|
|
"credentials": {
|
|
"googleSheetsOAuth2Api": {
|
|
"id": "K0hDZh3a85MpOHCs",
|
|
"name": "Google Sheets account 2"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"operation": "append",
|
|
"documentId": {
|
|
"__rl": true,
|
|
"value": "1uyoEU47L5me3FfIdmUjJ26sfbqbyvR-TMw15i26MbFE",
|
|
"mode": "list",
|
|
"cachedResultName": "Listado completo",
|
|
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1uyoEU47L5me3FfIdmUjJ26sfbqbyvR-TMw15i26MbFE/edit?usp=drivesdk"
|
|
},
|
|
"sheetName": {
|
|
"__rl": true,
|
|
"value": "gid=0",
|
|
"mode": "list",
|
|
"cachedResultName": "Hoja 1",
|
|
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1uyoEU47L5me3FfIdmUjJ26sfbqbyvR-TMw15i26MbFE/edit#gid=0"
|
|
},
|
|
"columns": {
|
|
"mappingMode": "defineBelow",
|
|
"value": {
|
|
"cedula": "={{\n $json[\"CEDULA\"]\n .replace(/\\D/g, '')\n .replace(/^(\\d{3})(\\d+)(\\d)$/, \"$1-$2-$3\")\n}}"
|
|
},
|
|
"matchingColumns": [
|
|
"ID"
|
|
],
|
|
"schema": [
|
|
{
|
|
"id": "cedula",
|
|
"displayName": "cedula",
|
|
"required": false,
|
|
"defaultMatch": false,
|
|
"display": true,
|
|
"type": "string",
|
|
"canBeUsedToMatch": true,
|
|
"removed": false
|
|
}
|
|
],
|
|
"attemptToConvertTypes": false,
|
|
"convertFieldsToString": false
|
|
},
|
|
"options": {
|
|
"cellFormat": "RAW"
|
|
}
|
|
},
|
|
"type": "n8n-nodes-base.googleSheets",
|
|
"typeVersion": 4.7,
|
|
"position": [
|
|
960,
|
|
672
|
|
],
|
|
"id": "9b1f014a-a27e-4261-a2bb-6c2a47bf8bc3",
|
|
"name": "Append row in sheet1",
|
|
"credentials": {
|
|
"googleSheetsOAuth2Api": {
|
|
"id": "K0hDZh3a85MpOHCs",
|
|
"name": "Google Sheets account 2"
|
|
}
|
|
},
|
|
"onError": "continueErrorOutput"
|
|
},
|
|
{
|
|
"parameters": {
|
|
"jsCode": "const sheets = $json.sheets || [];\nreturn sheets.map(s => ({\n json: {\n sheetTitle: s.properties.title,\n sheetId: s.properties.sheetId,\n }\n}));"
|
|
},
|
|
"type": "n8n-nodes-base.code",
|
|
"typeVersion": 2,
|
|
"position": [
|
|
400,
|
|
544
|
|
],
|
|
"id": "c8dde485-4ca9-49c3-8ff1-346aeeec20db",
|
|
"name": "Code in JavaScript1"
|
|
},
|
|
{
|
|
"parameters": {
|
|
"documentId": {
|
|
"__rl": true,
|
|
"value": "1uyoEU47L5me3FfIdmUjJ26sfbqbyvR-TMw15i26MbFE",
|
|
"mode": "list",
|
|
"cachedResultName": "Listado completo",
|
|
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1uyoEU47L5me3FfIdmUjJ26sfbqbyvR-TMw15i26MbFE/edit?usp=drivesdk"
|
|
},
|
|
"sheetName": {
|
|
"__rl": true,
|
|
"value": "gid=0",
|
|
"mode": "list",
|
|
"cachedResultName": "Hoja 1",
|
|
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1uyoEU47L5me3FfIdmUjJ26sfbqbyvR-TMw15i26MbFE/edit#gid=0"
|
|
},
|
|
"options": {}
|
|
},
|
|
"type": "n8n-nodes-base.googleSheets",
|
|
"typeVersion": 4.7,
|
|
"position": [
|
|
992,
|
|
528
|
|
],
|
|
"id": "db3dd804-9c24-4b90-8c65-b38c761e02b2",
|
|
"name": "Get row(s) in sheet3",
|
|
"executeOnce": true,
|
|
"credentials": {
|
|
"googleSheetsOAuth2Api": {
|
|
"id": "K0hDZh3a85MpOHCs",
|
|
"name": "Google Sheets account 2"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"mode": "combine",
|
|
"advanced": true,
|
|
"mergeByFields": {
|
|
"values": [
|
|
{
|
|
"field1": "cedulas",
|
|
"field2": "cedula"
|
|
}
|
|
]
|
|
},
|
|
"joinMode": "keepNonMatches",
|
|
"outputDataFrom": "input1",
|
|
"options": {}
|
|
},
|
|
"type": "n8n-nodes-base.merge",
|
|
"typeVersion": 3.2,
|
|
"position": [
|
|
1280,
|
|
448
|
|
],
|
|
"id": "24056aa6-e76d-4bce-bc81-46f59b798914",
|
|
"name": "Merge1"
|
|
},
|
|
{
|
|
"parameters": {
|
|
"operation": "clear",
|
|
"documentId": {
|
|
"__rl": true,
|
|
"value": "1uyoEU47L5me3FfIdmUjJ26sfbqbyvR-TMw15i26MbFE",
|
|
"mode": "list",
|
|
"cachedResultName": "Listado completo",
|
|
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1uyoEU47L5me3FfIdmUjJ26sfbqbyvR-TMw15i26MbFE/edit?usp=drivesdk"
|
|
},
|
|
"sheetName": {
|
|
"__rl": true,
|
|
"value": "gid=0",
|
|
"mode": "list",
|
|
"cachedResultName": "Hoja 1",
|
|
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1uyoEU47L5me3FfIdmUjJ26sfbqbyvR-TMw15i26MbFE/edit#gid=0"
|
|
},
|
|
"keepFirstRow": true
|
|
},
|
|
"type": "n8n-nodes-base.googleSheets",
|
|
"typeVersion": 4.7,
|
|
"position": [
|
|
1024,
|
|
0
|
|
],
|
|
"id": "0a888613-9ccb-43ae-9cf9-3aba4d5389cf",
|
|
"name": "Clear sheet1",
|
|
"executeOnce": true,
|
|
"credentials": {
|
|
"googleSheetsOAuth2Api": {
|
|
"id": "K0hDZh3a85MpOHCs",
|
|
"name": "Google Sheets account 2"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"sendTo": "lmatos@gomezleemarketing.com",
|
|
"subject": "Empleados en TSS a Validar",
|
|
"emailType": "text",
|
|
"message": "=Hola Luis,\n\nAqui el listado de usuarios a validar segun el reporte de TSS y Nomina:\n\n{{ $items().map(i => i.json.cedulas).join(\"\\n\") }}\n\nGracias,",
|
|
"options": {}
|
|
},
|
|
"type": "n8n-nodes-base.gmail",
|
|
"typeVersion": 2.2,
|
|
"position": [
|
|
1536,
|
|
448
|
|
],
|
|
"id": "ad951cf3-17d3-4c35-abd1-3e7eb3cbafaf",
|
|
"name": "Send a message1",
|
|
"webhookId": "a7d40884-8a32-40ef-8ff5-3d15c85aaf88",
|
|
"executeOnce": true,
|
|
"credentials": {
|
|
"gmailOAuth2": {
|
|
"id": "UDcO1FLJqA453V2D",
|
|
"name": "Gmail account 3"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"operation": "update",
|
|
"fileId": {
|
|
"__rl": true,
|
|
"value": "18VmaHViUAZWveaULQsFgWXaztke82lo_Bll_j7X2EVg",
|
|
"mode": "list",
|
|
"cachedResultName": "ComparacionTSS",
|
|
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/18VmaHViUAZWveaULQsFgWXaztke82lo_Bll_j7X2EVg/edit?usp=drivesdk"
|
|
},
|
|
"changeFileContent": true,
|
|
"inputDataFieldName": "Archivo",
|
|
"newUpdatedFileName": "=",
|
|
"options": {
|
|
"useContentAsIndexableText": false
|
|
}
|
|
},
|
|
"type": "n8n-nodes-base.googleDrive",
|
|
"typeVersion": 3,
|
|
"position": [
|
|
304,
|
|
0
|
|
],
|
|
"id": "20674586-df44-43fc-832f-ac372d78fff0",
|
|
"name": "Update file1",
|
|
"credentials": {
|
|
"googleDriveOAuth2Api": {
|
|
"id": "g23xdGLZRzBGqKgH",
|
|
"name": "Isaac - Google Drive"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"operation": "clear",
|
|
"documentId": {
|
|
"__rl": true,
|
|
"value": "1uyoEU47L5me3FfIdmUjJ26sfbqbyvR-TMw15i26MbFE",
|
|
"mode": "list",
|
|
"cachedResultName": "Listado completo",
|
|
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1uyoEU47L5me3FfIdmUjJ26sfbqbyvR-TMw15i26MbFE/edit?usp=drivesdk"
|
|
},
|
|
"sheetName": {
|
|
"__rl": true,
|
|
"value": 960593395,
|
|
"mode": "list",
|
|
"cachedResultName": "Hoja 2",
|
|
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1uyoEU47L5me3FfIdmUjJ26sfbqbyvR-TMw15i26MbFE/edit#gid=960593395"
|
|
},
|
|
"keepFirstRow": true
|
|
},
|
|
"type": "n8n-nodes-base.googleSheets",
|
|
"typeVersion": 4.7,
|
|
"position": [
|
|
144,
|
|
0
|
|
],
|
|
"id": "313c9879-a768-462b-adad-6ab22dd44fbb",
|
|
"name": "Clear sheet2",
|
|
"executeOnce": true,
|
|
"credentials": {
|
|
"googleSheetsOAuth2Api": {
|
|
"id": "K0hDZh3a85MpOHCs",
|
|
"name": "Google Sheets account 2"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"documentId": {
|
|
"__rl": true,
|
|
"value": "18VmaHViUAZWveaULQsFgWXaztke82lo_Bll_j7X2EVg",
|
|
"mode": "list",
|
|
"cachedResultName": "ComparacionTSS",
|
|
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/18VmaHViUAZWveaULQsFgWXaztke82lo_Bll_j7X2EVg/edit?usp=drivesdk"
|
|
},
|
|
"sheetName": {
|
|
"__rl": true,
|
|
"value": "Constancia de Recepcion - TSS D",
|
|
"mode": "name"
|
|
},
|
|
"options": {}
|
|
},
|
|
"type": "n8n-nodes-base.googleSheets",
|
|
"typeVersion": 4.7,
|
|
"position": [
|
|
464,
|
|
0
|
|
],
|
|
"id": "94229a04-c836-4ceb-9aa2-1133132c6a73",
|
|
"name": "Get row(s) in sheet4",
|
|
"credentials": {
|
|
"googleSheetsOAuth2Api": {
|
|
"id": "K0hDZh3a85MpOHCs",
|
|
"name": "Google Sheets account 2"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"assignments": {
|
|
"assignments": [
|
|
{
|
|
"id": "eb0a586c-64e0-442e-b5c1-111f4f1e6810",
|
|
"name": "cedulas",
|
|
"value": "={{\n String($json[\"NO_DOCUMENTO\"])\n .replace(/\\D/g, '')\n .padStart(11, '0')\n .replace(/^(\\d{3})(\\d{7})(\\d)$/, \"$1-$2-$3\")\n}}",
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"options": {}
|
|
},
|
|
"type": "n8n-nodes-base.set",
|
|
"typeVersion": 3.4,
|
|
"position": [
|
|
624,
|
|
0
|
|
],
|
|
"id": "9468739e-357d-4e07-8623-154eef2bb463",
|
|
"name": "Edit Fields"
|
|
},
|
|
{
|
|
"parameters": {
|
|
"operation": "append",
|
|
"documentId": {
|
|
"__rl": true,
|
|
"value": "1uyoEU47L5me3FfIdmUjJ26sfbqbyvR-TMw15i26MbFE",
|
|
"mode": "list",
|
|
"cachedResultName": "Listado completo",
|
|
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1uyoEU47L5me3FfIdmUjJ26sfbqbyvR-TMw15i26MbFE/edit?usp=drivesdk"
|
|
},
|
|
"sheetName": {
|
|
"__rl": true,
|
|
"value": 960593395,
|
|
"mode": "list",
|
|
"cachedResultName": "Hoja 2",
|
|
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1uyoEU47L5me3FfIdmUjJ26sfbqbyvR-TMw15i26MbFE/edit#gid=960593395"
|
|
},
|
|
"columns": {
|
|
"mappingMode": "autoMapInputData",
|
|
"value": {},
|
|
"matchingColumns": [
|
|
"cedulas"
|
|
],
|
|
"schema": [
|
|
{
|
|
"id": "cedulas",
|
|
"displayName": "cedulas",
|
|
"required": false,
|
|
"defaultMatch": false,
|
|
"display": true,
|
|
"type": "string",
|
|
"canBeUsedToMatch": true,
|
|
"removed": false
|
|
}
|
|
],
|
|
"attemptToConvertTypes": false,
|
|
"convertFieldsToString": false
|
|
},
|
|
"options": {}
|
|
},
|
|
"type": "n8n-nodes-base.googleSheets",
|
|
"typeVersion": 4.7,
|
|
"position": [
|
|
832,
|
|
0
|
|
],
|
|
"id": "36338403-5ee6-4059-8dcf-76ae6b0b1a4a",
|
|
"name": "Append row in sheet",
|
|
"credentials": {
|
|
"googleSheetsOAuth2Api": {
|
|
"id": "K0hDZh3a85MpOHCs",
|
|
"name": "Google Sheets account 2"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"connections": {
|
|
"On form submission": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Update file",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Clear sheet",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Get row(s) in sheet": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Merge",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Clear sheet": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Clear sheet2",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Get row(s) in sheet1": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Merge",
|
|
"type": "main",
|
|
"index": 1
|
|
},
|
|
{
|
|
"node": "Merge1",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Merge": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Send a message",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Update file": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "HTTP Request",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"HTTP Request": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Code in JavaScript1",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Loop Over Items": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Get row(s) in sheet",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Get row(s) in sheet1",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Get row(s) in sheet3",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"node": "Get row(s) in sheet2",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Wait": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Loop Over Items",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Get row(s) in sheet2": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Append row in sheet1",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Append row in sheet1": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Wait",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Code in JavaScript1": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Loop Over Items",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Get row(s) in sheet3": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Merge1",
|
|
"type": "main",
|
|
"index": 1
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Merge1": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Send a message1",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Update file1": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Get row(s) in sheet4",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Clear sheet2": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Update file1",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Get row(s) in sheet4": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Edit Fields",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Edit Fields": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Append row in sheet",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Append row in sheet": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Clear sheet1",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"authors": "Isaac Aracena",
|
|
"name": "Version 5445da06",
|
|
"description": "",
|
|
"autosaved": true,
|
|
"workflowPublishHistory": [
|
|
{
|
|
"createdAt": "2026-07-02T13:39:55.235Z",
|
|
"id": 2268,
|
|
"workflowId": "N6WRF7MmEVuh7I7A",
|
|
"versionId": "5445da06-fd76-4504-a839-8e19aeea32fb",
|
|
"event": "activated",
|
|
"userId": "0a88c0b1-928e-4412-896e-c5d1c99b2029"
|
|
}
|
|
]
|
|
}
|
|
} |