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

 

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

 

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.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

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.

Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022- Season 2 has kicked off!

Users online (4,445)