How can we access nested JSON array elements in a Zapier Webhook?
Given this incoming JSON structure:
... we need to access these elements:
I tried wiring up these paths:
... and we do get the outer elements (lead_id, campaign_id, adgroup_id, etc.), but I'm not able to access any individual JSON elements from the array, e.g.:
... which should represent the email address.
Am I missing something obvious here? I couldn't find any definitive information in your support system for JSON arrays.
Best answer by jesse
Hey friends! Just wanted to offer some additional context here,
Generally, the Webhooks trigger doesn't do well in handling nested arrays so you won't be able to grab both the array as well as the rest of the payload in the trigger unless you're using a Code step workaround like
Another option here is to create a Developer App using our Web builder that'll give you a lot more customization with handling that incoming payload.
If you have any other questions with this payload, definitely continue to ask here in the thread or category and our Community members are likely to offer some suggestions and tips for you!