cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Kudo Collector
Kudo Collector

Using Webhooks to keep up with your Flows

Workflow is something I use frequently in my work.  Emails, on the other hand, I try to avoid as much as possible.  So what's the best way to stay informed about the progress of your Flows?  I was looking for some innovative ways to stay informed without having to check in on the Flow satus page or rely on emails and found that Webhooks do a good job at this.

 

Below is a simple example of a Flow that is triggered each time I upload a document to my OneDrive and asks for approval whether to keep it or not.  Maybe not the greatest example, but good enough to get the point across.  In this flow, there are two steps that I get notified:

 

  1. New document has been uploaded
  2. Document has been approved or rejected

For each of these events, I use an HTTP Action to POST a message to a webhook.  

 FlowOverview.JPGInside of each HTTP action, there are four properties

 

  1. Method:  POST
  2. URL:  The webhook URL that receives the notification
  3. Header:  Description of the type of notification
  4. Body:  The notification itself

In my example, I am posting the notification to a Microsoft Teams Channel.  You can find the details on how to do it in my article on Using Microsoft Teams to keep up with the Flow.  To post a message, all I needed to provide is the method, URL, and body.  Note that for all the notification messages, the method is always POST and the URL is the same.  The only property that changes is the Body.

POST.png

 

I used some very basic formatting for my notifications to help visualize them better (yellow - in progress, green - approved, red - rejected).  You can get a full description of the HTTP messages in the Actionable message card reference.  Below is what the messages actually look like as they appear in the Microsoft Team channel.

 

WorkflowNotifications.png

 

 

2 REPLIES 2
Highlighted
Kudo Collector
Kudo Collector

Using Webhooks to keep up with your Flows

Workflow is something I use frequently in my work.  Emails, on the other hand, I try to avoid as much as possible.  So what's the best way to stay informed about the progress of your Flows?  I was looking for some innovative ways to stay informed without having to check in on the Flow satus page or rely on emails and found that Webhooks do a good job at this.

 

Below is a simple example of a Flow that is triggered each time I upload a document to my OneDrive and asks for approval whether to keep it or not.  Maybe not the greatest example, but good enough to get the point across.  In this flow, there are two steps that I get notified:

 

  1. New document has been uploaded
  2. Document has been approved or rejected

For each of these events, I use an HTTP Action to POST a message to a webhook.  

 FlowOverview.JPGInside of each HTTP action, there are four properties

 

  1. Method:  POST
  2. URL:  The webhook URL that receives the notification
  3. Header:  Description of the type of notification
  4. Body:  The notification itself

In my example, I am posting the notification to a Microsoft Teams Channel.  You can find the details on how to do it in my article on Keeping up with the Flow through Teams.  To post a message, all I needed to provide is the method, URL, and body.  Note that for all the notification messages, the method is always POST and the URL is the same.  The only property that changes is the Body.

POST.png

 

I used some very basic formatting for my notifications to help visualize them better (yellow - in progress, green - approved, red - rejected).  You can get a full description of the HTTP messages in the Actionable message card reference.  Below is what the messages actually look like as they appear in the Microsoft Team channel.

 

WorkflowNotifications.png

 

 

Highlighted
Community Support
Community Support

Re: Using Webhooks to keep up with your Flows

Hi @haniel,

 

Thanks for sharing!

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Users online (6,196)