Working with Google People API, I’m possibly setting up to four phone numbers on a contact.
The merge nodes seem to discard elements instead of merging them under the array.
No error message, the data is just not there in the JSON.
My Workflow is in the comments
I had to post only part of it, and I was still bumping into the character limit.
Share the output returned by the last node
[
{
"contact": {
"organizations": [
{
"name": "HRCC",
"type": "work"
}
],
"emailAddresses": [
{
"value": "[email protected]",
"type": "work"
}
],
"names": [
{
"givenName": "Millie",
"familyName": "Guisto"
}
],
"phoneNumbers": [
{
"value": "(541) 386-2183",
"type": "main"
}
]
},
"contactId": "c4008784378240636952",
"resourceName": "people/c4008784378240636952",
"etag": "%EgwBAgkLDBAuNz0+P0AaBAECBQciDFVOeE9YTFFLODhrPQ==",
"id": 84
}
]
Expected output
[
{
"contact": {
"organizations": [
{
"name": "HRCC",
"type": "work"
}
],
"emailAddresses": [
{
"value": "[email protected]",
"type": "work"
}
],
"names": [
{
"givenName": "Millie",
"familyName": "Guisto"
}
],
"phoneNumbers": [
{
"value": "(541) 386-2183",
"type": "main"
},
{
"value": "5414907176",
"type": "home"
},
{
"value": "5416789534",
"type": "mobile"
},
{
"value": "541-555-1212",
"type": "work"
}
]
},
"contactId": "c4008784378240636952",
"resourceName": "people/c4008784378240636952",
"etag": "%EgwBAgkLDBAuNz0+P0AaBAECBQciDFdFRm0xT1ZyNld3PQ==",
"id": 84
}
]
Information on your n8n setup
- n8n version: 1.52.2
- Database (default: SQLite): postgresQL 15
- n8n EXECUTIONS_PROCESS setting (default: own, main): Main
- Running n8n via (Docker, npm, n8n cloud, desktop app): Docker on DO
- Operating system: Ubuntu 22.04.4 LTS