Hello,
I'm new to Marketo.
I've created a webhook to our API. The webhook works as expected. However, when I include token fields, then Marketo seems to automatically include "quotes" around the rendered output. This breaks our JSON REST submission.
Eg:
{"message":"Hello there, how are you?"}
This works fine
However:
{"message":"Hello there {{lead.First Name:default=edit me}}, how are you?"}
Produces
{"message":"Hello world "Dan", how are you?"}
The extra quotes breaks the JSON structure. How can I work around this?
Any help would be much appreciated.
Thanks,
Dan
Solved! Go to Solution.
Turn off JSON encoding in the webhook setup. By default the lead tokens are quoted as if they are JSON strings (as opposed to components of a composed JSON payload).
Thanks Sanford! I would never have guessed!
Appreciate the quick response.