Question
You are building a model-driven app for a company.
You identify several custom commands that the app must support, including the following commands:
• Save a row.
• Move the user to a different row in the application.
• Navigate the user to an external webpage.
• Show a notification that the user can accept or decline.
You need to identify the formula to use for each requirement.
Which formulas should you identify? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Explanation
Save a row: Patch(). In model-driven app commanding, Power Fx writes data with Patch, for example Patch(Accounts, Self.Selected.Item, {...}) to update the selected record or Patch(Tasks, Defaults(Tasks), {...}) to create one. SubmitForm() and SaveData() are on the list of functions not supported in commanding, and Confirm() only shows a dialog.
Move to a different row: Navigate(). In commanding, Navigate can open another record's form (Navigate(Gallery1.Selected)), a table view or a custom page. Back() and Exit() are not supported in commanding, and Launch() opens a URL rather than a row in the app.
Navigate the user to an external webpage: Launch(). Launch("https://...") opens an external address. Navigate() only moves within the app (forms, views, custom pages).
Show a notification with options: Confirm(). Confirm displays a dialog with confirm and cancel buttons and returns true or false, so the command can act on whether the user accepted or declined. Notify() shows a one-way message, and InvokeControl() and Set() are not supported in commanding.