Webhook data not parsing Labels - how to format correctly?

Status
Not open for further replies.

kurt

Member
Your Task History ID
IjU3NjYwNTZiMDYzMzA0MzQ1MjZhNTUzMTUxMzAi_pc
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 .

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 protected],
"customer.first_name": Kurt,
"customer.SIGNUP_URL":URL,
"customer.DUE_DATE":due-date,
}
 

ArshilAhmad

Well-known member
Staff member
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.
JSON:
{
  "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' }}"
}
 
Status
Not open for further replies.
Top