AnsweredAssumed Answered

Webhooks, Tokens and Quotation markers

Question asked by d580b2be39706c4dcf9bd19d39a8898430cc338a on Dec 15, 2016
Latest reply on Dec 15, 2016 by d580b2be39706c4dcf9bd19d39a8898430cc338a

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

Outcomes