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:
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 😁
Thank you! Im still learning and turns out it was just starring me right in the face. 🙂
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
When you run it you should get Failed.
WarrenBelz
146,618
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,957
Most Valuable Professional