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
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']

 



Happy to help out! 🙂

Interested in more #PowerAutomate #SharePointOnline or #PowerVirtualAgents content?
Visit my blog, Subscribe to my YouTube channel or Follow me on Twitter


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']

 



Happy to help out! 🙂

Interested in more #PowerAutomate #SharePointOnline or #PowerVirtualAgents content?
Visit my blog, Subscribe to my YouTube channel or Follow me on Twitter


Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Users online (1,445)