I have issue to put multiple Marketo tokens in MS teams incoming webhook payload.
Does some help me how to create payload message -json for MS teams bot integration with Marketo ?
As for the text only message payload is OK. But when I put Marketo token in the payload message in
MS teams Webhook setup.
here is sample payload with text only - this is OK
{
"title": "title",
"text": "this is text"
}
Here is another payload with single token - this is OK
{
"title": "Form Submission",
"text": "{{lead.Last Name}} this is test."
}
Would you please tell me how to create payload with multiple lead tokens of marketo ?
We'd like to put those lead tokens.
- {{lead.Last Name}}, {{Lead.Fast Name}}, {{company.Company Name}}, {{Lead. xxxx}}
thanks,
best regards
Solved! Go to Solution.
It isn't OK with even a single token inside the quotation marks! That's going to create to broken JSON when characters need to be encoded (and you must have JSON encoding chosen).
The only valid values for a key are:
1. a static JSON string
{
"key" : "value"
}
2. a single token, not quoted, with Marketo doing the encoding:
{
"key" : {{lead.field}}
}
If you want to have multiple lead fields contribute to a single JSON value, you need to create a separate custom String field, then use a flow step to concatenate the fields, e.g.
Change Data Value
field
Teams Invitation Text
value
{{lead.Last Name}}, {{Lead.Fast Name}}, {{company.Company Name}}, {{Lead. xxxx}}
Then use that token in the webhook:
{
"key" : {{lead.Teams Invitation Text}}
}
It isn't OK with even a single token inside the quotation marks! That's going to create to broken JSON when characters need to be encoded (and you must have JSON encoding chosen).
The only valid values for a key are:
1. a static JSON string
{
"key" : "value"
}
2. a single token, not quoted, with Marketo doing the encoding:
{
"key" : {{lead.field}}
}
If you want to have multiple lead fields contribute to a single JSON value, you need to create a separate custom String field, then use a flow step to concatenate the fields, e.g.
Change Data Value
field
Teams Invitation Text
value
{{lead.Last Name}}, {{Lead.Fast Name}}, {{company.Company Name}}, {{Lead. xxxx}}
Then use that token in the webhook:
{
"key" : {{lead.Teams Invitation Text}}
}