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
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (5,216)