Event name in Webhooks | Community
Skip to main content
Level 2
Jan 22, 2020 9:17 PM UTC
Question

Event name in Webhooks

I would like to make a single webhook to be able to handle all events from Marketo regardless of which smart campaign the webhook is attached to. Is it possible to be able to know what triggered the webhook such as a specific event? I wasn't able to find a generic token to be able to do that in the payload. Is the only solution to make a webhook for every single event that we want to track?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

13 replies

Level 2
Jan 22, 2020 9:32 PM UTC

Thanks for the quick responses! I have one more question. What exactly would an event mean in Marketo (such as "email opened" or "email sent", etc.) and how many would be associated with a campaign?

Translate
SanfordWhiteman
Level 10
Jan 22, 2020 9:45 PM UTC

Oh, you mean "event" as in "activity."

In Marketo, "event" specifically refers a type of program, and its associated live/virtual, er, event.

You can use the {{trigger.tokens}} for activities, they're built-in: {{trigger.trigger name}} is the type and {{trigger.name}} is the description/subject.

However, I hope you're not expecting to ping a service via webhook when an Email Sent activity occurs unless your daily volume is in the 10s of thousands only.

Translate
Level 2
Jan 22, 2020 9:52 PM UTC

When I try to set up a webhook on the webhook and insert a token, I don't see any of the trigger.tokens in the dropdown. Is there something I have to do to enable that?

Thanks!

Translate
Level 6
Jan 22, 2020 9:24 PM UTC

Hi, 

If you were to make a program token called {{my.eventTracker}} and then add that to your webhook when setting it up- I believe it will do what you would like. 

If the campaigns aren't nested in programs a folder token could potentially work.  

hope it helps!

Translate
SanfordWhiteman
Level 10
Jan 22, 2020 9:22 PM UTC

You could use tokens like {{campaign.name}}, {{campaign.id}}, {{program.id]}, etc.

Translate