cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Solomon1
Regular 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
Super User
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
Super User
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

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.

Top Kudoed Authors
Users online (1,997)