I'm trying to build my first integration between two platforms. Starting simple. I have the Webhooks receiver working. I've also successfully piped that info into the end platform.
Here's my json that is NOT working:
{
"customer_id": "21742107",
"subject": "A Subject",
"problem_type": "Contract Work",
"user_id": "129173",
"contact_id": "1153967",
"location_id": "0",
"comments_attributes": [
{
"subject": "A subject",
"body": "Alert Details: \nOrganization:"
}
]
}
Here is the json that works:
{
"customer_id": "21742107",
"subject": "A Subject",
"problem_type": "Contract Work",
"user_id": "129173",
"contact_id": "1153967",
"location_id": "0",
"comments_attributes": [
{
"subject": "A subject",
"body": "Alert Details: Organization:"
}
]
}
The error I'm getting is:
Unable to process template language expressions in action 'HTTP' inputs at line '1' and column '7956': 'Error reading string. Unexpected token: StartArray. Path 'queries.comments_attributes'.'.
Obviously, the issue is the newline. I've tried 0, 1, 2, 3 and 4 backslashes. Except, every json validator I can find says both the top and the bottom json are valid. I even tried inserting Compose in front of my http function to format that field prior to calling it. Same error.
So, bottom line, I want to format that one value, but PA won't let me put a newline in there. Well, it lets me put the newline in there and doesn't complain about it, but the process fails every time.
Does anyone have a clue stick to hit this newbie upside the head? I
Thanks,
Airneil