TUTORIAL - Marketo and Slack Integration

Karan_Hari3
Marketo Employee

Re: TUTORIAL - Marketo and Slack Integration

Thanks a lot Gursimran. . Our next virtual event for the India Virtual User Group is on July 2nd (Tuesday),  where the topic of discussion is " Connecting Your Tech Stack To Power Marketo". Would love to have you in our virtual event. Details for the event are here -  Video Link : 2799 

Best Always,

Karan Hari

Karan Hari
Senior Product Manager - Marketo Engage
Gursimran_Chand
Level 4

Re: TUTORIAL - Marketo and Slack Integration

Thanks, Karan Hari

Jo_Pitts1
Level 6

Re: TUTORIAL - Marketo and Slack Integration

Great article - nice step by step details!

Gursimran_Chand
Level 4

Re: TUTORIAL - Marketo and Slack Integration

Thank you, Jo Pitts‌. Glad you find it useful.

Amy_Goldfine
Level 10 - Community Advisor

Re: TUTORIAL - Marketo and Slack Integration

We are looking to do this, but we want two different types of alerts (differentiated by a field called "MQL Type") with different fields in the alert and ideally a different icon in the Slackbot. Do you know the best way to accomplish this?

Catherine_Fins2
Level 2

Re: TUTORIAL - Marketo and Slack Integration

Hi great post!

We have set up the Webhook as you have here, but we are getting 400 errors if there is an "&" character in any of the Marketo token values. Updating the "request token encoding" to JSON does not seem to resolve the issue. Do you have ideas of what to do to avoid these 400 errors? 

SanfordWhiteman
Level 10 - Community Moderator

Re: TUTORIAL - Marketo and Slack Integration


, but we are getting 400 errors if there is an "&" character in any of the Marketo token values.

In fact, the problems with this tutorial go far beyond that one case!

 

The webhook payload recommended above is extremely flawed, as it does not take a wide variety of special characters into account. You can't not JSON-encode values and try to sneak them inside a hand-crafted JSON object. JSON doesn't work that way.

 

What you actually need to do is create a separate Textarea field, call it Next Slack Webhook Text or similar.

 

Populate that field, using a Change Data Value step, with the desired text including one or more {{lead.tokens}}:

2021-03-08 19_01_34-Marketo _ T1 (Flow) • Marketing Activities.png

 

Then your webhook payload is simply

{
  "text" : {{lead.Next Slack Webhook Text}}
}

 

and you must set the Request Encoding to JSON.