Skip to main content
Grégoire_Miche2
Level 10
Dec 3, 2015 2:33 PM UTC
Solved

Are webhooks synchronous?

When calling a webhook in a smart campaign flow, is Marketo waiting for the webhook response before monving to the next flow step or is it moving to the next flow step immediately after calling the webhook, without waiting ?

-Greg

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
SanfordWhiteman
SanfordWhitemanAccepted solution
User Group Leader
Dec 3, 2015 6:14 PM UTC

AFAIK webhook execution is synchronous.  But that may not be your underlying question, because a data value update as the result of a webhook is asynchronous (it will happen outside of the rest of the flow).

13 replies

SanfordWhiteman
User Group Leader
SanfordWhitemanUser Group LeaderAccepted solution
User Group Leader
Dec 3, 2015 6:14 PM UTC

AFAIK webhook execution is synchronous.  But that may not be your underlying question, because a data value update as the result of a webhook is asynchronous (it will happen outside of the rest of the flow).

Translate
Jep_Castelein2
Level 10
Dec 7, 2015 5:46 PM UTC

If you use the webhook's Response Mapping to save data back to a field in Marketo, that will by synchronous.

Example: In my test system I have a webhook that fixes the case for first name and last name, so if someone fills out a form with "joe" as first name, the webhook will write back "Joe" to the first name field. As a test, I put a 2nd flow step immediately after the Webhook to copy {{lead.First Name}} to another field. That Change Data Value does indeed copy "Joe" to the other field (not "joe"), so the webhook data value change has been processed synchronously.

Translate
Dec 7, 2015 5:53 PM UTC

Will just adding a delay of 2 minutes after web hook not be sufficient?

Direct Data field updates done by the webhook should have been done by that

time?

Or there is something I am missing to consider?

Rajesh

Translate
Grégoire_Miche2
Level 10
Dec 3, 2015 6:21 PM UTC

Thx Sanford,

Yes, my question was exactly about the data value update as a result of the webhook.

-Greg

Translate
SanfordWhiteman
User Group Leader
User Group Leader
Dec 3, 2015 6:24 PM UTC

Yeah, it's annoying.  But it's consistent with other contexts in which we insert/update.

Translate
Grégoire_Miche2
Level 10
Dec 3, 2015 6:35 PM UTC

So here is the idea :

-Greg

Translate
Kenny_Elkington
Adobe Employee
Adobe Employee
Dec 7, 2015 6:52 PM UTC

There are very good reasons why the data updates are not made synchronously.  It's not possible to generalize the response time of an arbitrary server, so the execution time of a given webhook is unpredictable, and can cause enormous campaign queue backlogs if we made the data value changes synchronous.  The best alternative would be either to use the Webhook is called trigger, or a Data Value Changes trigger with a source type of Webhook.

Translate
SanfordWhiteman
User Group Leader
User Group Leader
Dec 7, 2015 6:58 PM UTC

So I'm right!

Translate
Grégoire_Miche2
Level 10
Dec 29, 2015 2:15 PM UTC

Another example where synchronous update is required : Tracking the actions of non-leads 

-Greg

Translate