Simple work flow triggered by a webhook with json data. Issue is when mapping to data in earlier nodes I get either undefined, or simply no data at all, when there most definitely is data. Not for every field with the sample data provided, but there is data for some of the fields
I have tried adding in .first() and also removing .item() which seems to work on with mautic node on false leg of the IF node, but no such luck on the true leg.
Here is a sample json payload for testing
[
{
"headers": {
"host": "connect.xxxx.biz",
"user-agent": "GuzzleHttp/6.5.5 curl/7.68.0 PHP/7.3.24-3+ubuntu20.04.1+deb.sury.org+1",
"content-length": "1114",
"content-type": "application/json",
"x-forwarded-for": "149.28.195.209",
"x-forwarded-host": "connect.xxxxx.biz",
"x-forwarded-port": "443",
"x-forwarded-proto": "https",
"x-forwarded-server": "4d1c1d8abe6b",
"x-real-ip": "149.28.195.123",
"accept-encoding": "gzip"
},
"params": {},
"query": {},
"body": {
"linkedin": "joe-soap-ph-d-14905a2",
"linkedin_profile_url": "https://www.linkedin.com/in/joe-soap-ph-d-14905a2",
"name": "Joe Soap Ph.D",
"first_name": "Joe Soap",
"last_name": "Ph.D",
"company": "Nelson Mandela Metropolitan University\nAuthor- Radical Transformation and Sustainability \nMentor \nPhilanthropist \nSports Administrator \nEntrepreneur \nLeadership Innovator\nBusiness Leader",
"title": "PhD",
"industry": "Industrial Machinery Manufacturing",
"education": "Nelson Mandela Metropolitan University",
"location": "City of Cape Town, Western Cape",
"connections": "500",
"experience": [
{
"name": "Community Chest of the Western Cape",
"title": "Chairman of The Board of Directors"
},
{
"name": "Cape Peninsula University of Technology",
"title": "External Moderator"
},
{
"name": "Fibretek Manufacturing",
"title": "CEO"
},
{
"name": "Cape Peninsula University of Technology",
"title": "Chairman Advisory Board"
},
{
"name": "W-Tech Manufacturing",
"title": "Managing Director"
}
],
"tags": "",
"campaigns": [
"Entrepreneurial CEOs in South Africa 2"
],
"connected_at": "2023-07-24 20:28:49",
"webhook_name": "Push connections to member"
}
}
]
- n8n version: latest
- Database (default: SQLite): SQ lite
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
- Operating system: