cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper IV
Helper IV

Send Exception details in email in flow

Hi,

 

We are using scope to handle exception in flow, Whenever request will fail, support team will get an email. But it doesn't contains details about exception. Support Team has to check flow details every time to check the exception. How can we send exception details in email.

3 REPLIES 3
Highlighted
Resident Rockstar
Resident Rockstar

@vandana 

You can include a link to the flow in your email by using the below expression:

To get the flow run history by adding it in a compose data operation and using the output in your email.

 

concat('https://emea.flow.microsoft.com/manage/environments/',workflow()['tags']['environmentName'],'/flows/',workflow()['name'],'/runs/',workflow()['run']['name'])
 
 
If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.
Highlighted

Thanks

 

In this way flow history page will open and support team has to check the exception. Is there any way in flow we can catch exception like we do in programming languages and send in email

Highlighted

@vandana

The only way I can think of is that you can add a run after failure action for each step you may suspect can fail, i think from the workflow() body you can catch the exception and send it through email, I don't have a fully working solution for this but let me try full working solution and will update you.

 

If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

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.

Top Kudoed Authors
Users online (13,475)