QuestionQ115

VerifiedBuild business application logic and automation

You manage a canvas app for a company. The company requires the app to notify users when an operation fails.

Review the following formula used in the canvas app.

Question Image

You need to verify whether the formula handles errors correctly. For each of the following statements, select Yes if the statement is true. Otherwise, select No.

Yes or No
StatementsYesNo
The second Patch operation is protected by error handling.
The Notify function runs when the Patch operation succeeds.
The first Patch operation can fail without triggering the Notify function.
Explanation

IfError handles errors from the formula it wraps, so it protects the second Patch. Its Notify("Update failed") replacement expression runs only if that Patch errors, not when it succeeds. The first Patch is executed before and outside IfError, so an error from it does not trigger that notification.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!