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

After failure, getting error message and putting into email body.

After run this action "Run a flow built with Power Automate Desktop"

when it fails, its output contains "message: ..." and I want to include the error message into email body for debugging purposes.

It would be much appreciated in advance for your step by step explanation for a newbie like me. 

 

Solomon1_0-1625733892322.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Expiscornovus
Dual Super User
Dual Super User

Hi @Solomon1,

 

You can configure a run after when it has failed (which by looking at your screenshot you have already configured) and then use the following expression:

outputs('NameofYourAction')?['body']['error']['message']

 

View solution in original post

1 REPLY 1
Expiscornovus
Dual Super User
Dual Super User

Hi @Solomon1,

 

You can configure a run after when it has failed (which by looking at your screenshot you have already configured) and then use the following expression:

outputs('NameofYourAction')?['body']['error']['message']

 

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.

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
Users online (3,534)