Re: Triggering for Lead , Campaign , Company Update and Delete using WebHook

Anonymous
Not applicable

Triggering for Lead , Campaign , Company Update and Delete using WebHook

Hi Team ,

My self Anil Kumar Nayak , I create a webhook in marketo , to call that webhook I create SmartCampaign ,

When any lead creation happen then my webhook will trigger and I will got payload response . So it is working fine .

But I want when lead update and lead deletion happen then also my webhook should call and I should get payload .

Same thing for Company and Campaign .

Thanks & Regards

Anil Kumar Nayak

3 REPLIES 3
Devraj_Grewal
Level 10 - Champion Alumni

Re: Triggering for Lead , Campaign , Company Update and Delete using WebHook

You can use the "data value changes" trigger for whenever a field on the lead or contact is updated and the "lead is deleted" trigger for when the lead is deleted. Those can be used to call the same webhook in the flow.

As for company, you cannot write to the account object from Marketo. As for the campaign, are you referring to SFDC campaigns?

Anonymous
Not applicable

Re: Triggering for Lead , Campaign , Company Update and Delete using WebHook

Hi Devraj ,

Thanks for your reply , actually I am using Smart Campaign , as per your instruction I am able to trigger webhook when any lead is updated,

but I am not able to get payload which should say this the old value and this the new value for lead update .

Thanks

Anil Kumar Nayak

SanfordWhiteman
Level 10 - Community Moderator

Re: Triggering for Lead , Campaign , Company Update and Delete using WebHook

As I mentioned in one of your other threads, not all triggers have a useful {{trigger.token}} context

"State change" information from Data Value Changes ​is not transported in trigger.tokens. However, this is one area that you can simulate somewhat. Always keep a copy of the value in a proxy field ​(that's just a fancy way of saying "another custom field"). Then, when the primary field value changes, you can compare (for example) {{lead.Industry}} and {{lead.archivedIndustry}}.

Also, I don't know what you're doing with the webhook that you've been referring to, but you might want to detail your requirements/purposes so we can give you more advice from direct Marketo experience.