Webhook data not parsing Labels - how to format correctly?
Status: Closed · Asked by kurt on · 0 views
Hello, I'm trying to pass data into pabbly form my email cms. the data is arriving via webhook, but is not being parsed to into discrete data with labels. How can I fix this.?
I've included a video of what I'm sending form customer.io because I may be able to fix the json before tis sent, if I understand the correct syntax.
FYI I'm not a developer! so show me all the steps :-)
still of result with data all in one field.-> https://d.pr/i/Ci4xfm
video of issue and data in customer.io .
https://d.pr/v/UEKxGx
data as currently formatted in customer.io
{
"campaign_id": {{campaign.id}},
"segment_id": 38,
"customer.email": {{ customer.email }},
"customer.first_name": {{ customer.first_name }},
"customer.SIGNUP_URL":{{ customer.SIGNUP_URL | default: "URL" }},
"customer.DUE_DATE":{{ customer.DUE_DATE | default: "due-date" }},
}
sample output sent to Pabbly.
{
"campaign_id": 73,
"segment_id": 38,
"customer.email": [email hidden],
"customer.first_name": Kurt,
"customer.SIGNUP_URL":URL,
"customer.DUE_DATE":due-date,
}
Hi @kurt,
Please make sure to enclose the strings in double quotes. There was also a trailing comma after the last key-value pair, which we have removed. Try this.
{
"campaign_id": {{ campaign.id }},
"segment_id": 38,
"customer.email": "{{ customer.email }}",
"customer.first_name": "{{ customer.first_name }}",
"customer.SIGNUP_URL": "{{ customer.SIGNUP_URL | default: 'URL' }}",
"customer.DUE_DATE": "{{ customer.DUE_DATE | default: 'due-date' }}"
}
hi, I appreciate the direct help! thanks
We're glad we could help!