Correct Answer: B
Suppose you need to retrieve a record from the Dataverse Account table by a row ID, but the record does not exist. You will get an error, and the flow execution stops. You need to add an error handler to mitigate possible errors in your flow.
Power Automate provides an option "Configure run after" (Number 2) that helps the flow to proceed if a node fails. You can see this option in a menu when you click on the three dots in a node (Number 1). Power Automate opens a new screen for the node (Number 3) if you select the menu item. On the snapshot, the "Configure run after" screen is for the next node after the "Get a row by ID" — the "Switch" node. By default, the "Configure run after" option is set to "is successful" (Number 4). You need to check "has failed" (Number 5). This setting tells the flow to run the Switch node even after the "Get a row by ID" action fails.
You need to add a Switch action for the error triage and create the cases for successful execution of the "Get a row by ID" node and for error codes. You can capture the Web APIs HTTP errors like 404 and 500 (Number 1). Or you can get more in the details of the node outputs and capture the Dataverse error code (Number 2).
You must input the expression for the Switch “On”. If you want to capture the status code, the expression can be the following: outputs(`Get_a_row_by_ID`)[`statusCode’]. For the Dataverse error code — outputs(`Get_a_row_by_ID`)[`body`][`error`][`code’].
BTW, the outputs(`Get_a_row_by_ID`) is the shortcut for actions(‘Get_a_row_by_ID’).outputs.
You can also implement the Try-Catch construction using the Scope control action and “Configure run after” options.
All other options are incorrect.
For more information about the Power Automate error handler implementations, please visit the below URLs:
https://www.blog.allandecastro.com/error-handling-model-in-power-automate/
http://www.lifeonplanetgroove.com/advanced-error-handling-with-power-automate/#!prettyPhoto
https://flow.microsoft.com/en-us/blog/error-handling/
https://docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#outputs