web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Action Status extracti...
Power Automate
Answered

Action Status extraction from previous action

(0) ShareShare
ReportReport
Posted on by 6

Is it possible to extract an action status from any of the previous actions completed? 

 

What I would like to do is set a variable only once a scope action has failed, however, I currently have several branches, 

 

Typically I would do this by creating one parallel branch and then having an error handling loop, 

 

But since you can't have indented parallel branches that approach goes out the window (as far as I know anyway)...

 

So my question is, would it be possible to set a variable based on a previous action's result i.e "failed", "succeeded" or "canceled"?

 

Or similar to how in python you can "Try" or even pass on a loop should a condition fail, you can still return variables out of the loop, Im applying that logic but am not sure how to proceed. 

 

Appreciate any feedback on this!

 

Image of my flow:

 

kevincayouette_0-1641844977332.png

 

kevincayouette_1-1641845080123.png

 

 

Categories:
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,868 Most Valuable Professional on at

    Hi @kevincayouette,

     

    You could use the actions function and retrieve the status property value. Make sure you configure run after on the set variable action.


    Below is an example:

    actions('HTTP').status

     

    actions_status.png

     

    When you run it you should get Failed.

    actions_status_failed.png

  • kevincayouette Profile Picture
    6 on at

    Thank you! Im still learning and turns out it was just starring me right in the face. 🙂 

  • Expiscornovus Profile Picture
    33,868 Most Valuable Professional on at

    Hi @kevincayouette,

     

    No problem, I am also learning new stuff every single day.

     

    Btw, actions is definitely one of the lesser known functions in the expression language out there 😁

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 711

#2
Vish WR Profile Picture

Vish WR 691

#3
Haque Profile Picture

Haque 525

Last 30 days Overall leaderboard