Marketo Webhooks With Marketo API | Community
Skip to main content
August 12, 2015
Question

Marketo Webhooks With Marketo API

  • August 12, 2015
  • 3 replies
  • 7064 views

Odd question but I am wondering if its possible to use a marketo webhook to call and return data with either the soap or rest api for the same instance in marketo.

I have a unique use case where I want to merge two leads but need to do it in a smart campaign and I'm wondering if I can do that all contained within marketo or if I will need to use an external script to accomplish this.

If anyone has code examples that would be super as well I'm not very proficient with api syntax and webhooks.

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

3 replies

Josh_Hill13
Level 10
August 12, 2015

I believe there is an example on RingLead's site if you look for their webhook guide.

What precisely do you want to do? Marketo dedupes emails before it sends any emails out. What you want may already exist with Ringlead or another tool.

August 12, 2015

Hi Josh thanks for your comment.

I am creating a contact record in salesforce via the rest api and using the data from a new lead in marketo to generate it.  Once the interval sync occurs that will cause there to be two leads in marketo with the exact same information as marketo doesn't allow me to force a relationship between those records at the point of creation.

So I need a programmatic way to cause a merge of the original marketo lead that triggered the contact creation webhook and the new marketo lead that was generated from the interval sync so I don't have duplicate records in marketo.  Does that help clarify? Our company creates contacts first in salesforce which is confusing I know but this would be a workaround that would allow that to happen.

Thanks,

Dave.

SanfordWhiteman
Level 10
August 12, 2015

David, what are the conditions that prohibit you from waiting < 5m for the Marketo lead to sync to SFDC?

Not to say I haven't seen a similar situation -- in fact, we are dealing with one now.  But that's because we have a form creating users in SFDC and we can't switch that form to be a Mkto form.

I'd like to know the particulars of your situation because there may be a better approach.

While it is possible, after a fashion, to call Mkto APIs from Marketo 'hooks, it is clumsy, not particularly scalable, and if the flows are not managed tightly will lead to infinite loops.

John_M
Adobe Employee
Adobe Employee
August 25, 2015

Actually, you cannot do this as far as I'm aware. Specifically, you cannot call a specific instance of Marketo using SOAP or REST using the webhook in that same instance.

SanfordWhiteman
Level 10
August 25, 2015

I've heard (via a friend) that Professional Services had a secret recipe for the same instance. But you could just pass through a dumb reverse proxy in either case, so that's not the problem. The problem is still gonna be managing it all using only Flows... I'm sure you'll agree.

Elliott_Lowe1
Level 7
August 25, 2015

A Marketo Professional Services consultant did this with me a couple of years ago, but I haven't had a chance to implement this yet.

August 31, 2015

We wound up taking another route that was more scalable.  Thanks everyone for your help.  After consulting with Marketo experts we found out that webhooks do not operate in a batch function so large imports would take too long.