I want to provide some basic error handling for unexpected conditions, but I don't want have to manually get the output for each action. So I group similar actions into a "TryScope", then run_after_error on a CatchScope.
Create scope "TryScope-LoadLookupDataFromSharePointLists"
Create scope "CatchScope-LoadLookupDataFromSharepointLIsts", set "should run after = has failed"
(See image 1)
Within the Catchscope I am using: fx: outputs('TryScope-LoadLookupDataFromSharePointLists')
First, sorry for my late response 🙂
Regarding error handlings - instead of using "outputs('TryScope-LoadLookupDataFromSharePointLists')" function you should use result('TryScope-LoadLookupDataFromSharePointLists') and then parse the returned JSON. That fx returns all the execution details about each action inside the scope.
Please check out my post about it: https://poszytek.eu/en/microsoft-en/office-365-en/powerautomate-en/try-catch-pattern-in-microsoft-fl...
If you have more questions I am here to help 🙂
Result is working .. but the odd thing is the expression editor treats it like non-intelisense thing.
See there is no Result .. removeProperty, replace, and range.. but that is it...
And after calling result, I have to build my own parse JSON to get status.
Maybe result() is a preview flow feature?
Hey! Yes, that function from Logic Apps, but since Power Automate is built on top of them, you're able to use some of its features too 🙂
If you find my answer as a solution to your question please mark is as "answer" 🙂
Three Super User rank tiers have been launched!
Features releasing from October 2020 through March 2021
We are excited to announce the launch of Power Virtual Agents Community. Check it out now!
We've updated and improved the layout and uploading format of the Power Automate Cookbook!
Fill out a quick form to claim your user group badge now!