cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bbrazeau
Advocate IV
Advocate IV

Webhook - How to?

Trying to understand how to setup webhooks in flow to convert an existing flow that sometimes times out but not always.  Trying to distill it down to a simple example.


"Sender"

  • Flow Button
  • Http - HTTP
    • Method: Post
    • URI: <Receiver's URL>
    • Headers: Content-Type application/json
    • Body: {"message": "Do Stuff"}
  • Parse Json

 

"Receiver"

  • When HTTP Request is Received
  • Delay 10 minutes
  • Response
    • {"message":"Success"}


The real flow does stuff but its basically that.
So is converting this to Webhooks basically replacing the HTTP-HTTP action with HTTP-Webhook and setting the Subscribe URI to "Receivers" URL?  I tried that, but Sender never got the message / stopped running and I had to cancel it.
Also what is the unsubscribe URI?

 

So the basic Flow with the HTTP caller:

Caller - HTTP.png

And the Receiver - I only have the delay at 5 seconds as I'm not testing the timeout.

Reciever.png

 

Successful run returning the Success Message after the 5 second delay.

Caller - HTTP - Run.png

 

Everything works as expected. I then added a second HTTP action to the flow for the webhook call.

Caller - HTTP and Webhook.png

 

Running the flow, it triggers both calls to the receiver which were 5 seconds apart from the delay.

Reciever Run History.pngCaller - Run History - multiple minutes.png

 

But looking at the Flow's activities, its stopped on the Webhook action

 

Caller - Run not finishing.png

 

And the run history shows its well beyond the 5 second delay so the Webhook isn't reacting to the returned message.

Caller - Run History - multiple minutes.png

 

 

2 REPLIES 2

Hi @bbrazeau 

 

I wrote a blog about this type of scenario back in 2018. Here's a link to it: https://blog.mattweston365.com/2018/08/re-use-in-microsoft-flow-wise-man-once.html

 

That should give you an idea of how you can use it and answer some of your questions.

 

If you're still struggling after following that, please let me know.

v-litu-msft
Community Support
Community Support

Hi @bbrazeau 

 

Has your problem been solved by @MattWeston365 's help?
If your problem has been solved, You could go ahead and mark the post as solved by clicking “Accept as Solution” so that this thread will be marked for other users to easily identify!

Best Regards,
Community Support Team _ Lin Tu

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (3,368)