cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rmortier
Frequent Visitor

Can I access the "Error context" screenshot on a failed desktop flow?

I have a cloud flow that is receiving a webhook and then running a desktop flow to perform UI operations on our ERP system.

 

1.png

 

If the unattended bot runs into an error that it doesn't know how to deal with then the desktop flow errors out and provides a screenshot for context.

 

2.png

 

Is there a way to capture this screenshot/error context and send an email on failure? As you can see in my first image, the flow already sends an email for either a successful run or failed run. I'd like to provide this screenshot in the failed run email if possible.

 

Thanks.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
rmortier
Frequent Visitor

For anyone that manages to hit this post from Google, here is how I solved my issue.

 

First, I created a subflow to handle errors. Example:

 

rmortier_5-1655407862520.png

 

rmortier_0-1655407973239.png

 

Then in my main program I added a "On block error" flow control action that is set to run a subflow:

 

rmortier_3-1655407732837.png

 

rmortier_4-1655407745659.png

 

Hope that helps.

View solution in original post

2 REPLIES 2
rmortier
Frequent Visitor

bump

rmortier
Frequent Visitor

For anyone that manages to hit this post from Google, here is how I solved my issue.

 

First, I created a subflow to handle errors. Example:

 

rmortier_5-1655407862520.png

 

rmortier_0-1655407973239.png

 

Then in my main program I added a "On block error" flow control action that is set to run a subflow:

 

rmortier_3-1655407732837.png

 

rmortier_4-1655407745659.png

 

Hope that helps.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (1,292)