# Which navigation, dialog or notification API should I use in a model-driven app?

Exam: AB-400 — Power Platform Developer Associate
Knowledge domain: Extend the user experience (25–30%)
Updated: 2026-11-25T06:47:18.604934+00:00
HTML: https://learningpathx.com/faq/AB-400/ab400-model-driven-navigation-dialogs-notifications.html

## Also asked as

- How do I choose between form notifications, alert dialogs, confirmation dialogs and record navigation?
- How can I show feedback or open the right Dataverse row from model-driven JavaScript?

Use a form notification for persistent guidance on the current form, an alert for acknowledgement, and a confirmation dialog for a deliberate user choice. Use supported navigation APIs when the user needs to inspect or create a row.

* Call `formContext.ui.setFormNotification` with a stable identifier and clear it when the condition ends.
* Use `Xrm.Navigation.openAlertDialog` for an informational result. Use `openConfirmDialog` for a decision and continue only when the returned `confirmed` value is true.
* Use `Xrm.Navigation.openForm` to open a form or quick-create form. For an existing account in a Unified Interface dialog, `navigateTo` can use page type `entityrecord`, logical table name `account`, the captured `entityId`, and navigation target `2`. A missing ID makes this a create form, so validate it when the intent is inspection.

A dialog closing establishes only that it closed. Confirm the relevant business result independently and account for unsaved edits before refreshing form data. In development, check cancellation, an invalid or missing row ID, and normal-user access.

[Form notifications](https://learn.microsoft.com/en-us/power-apps/developer/model-driven-apps/clientapi/reference/formcontext-ui/setformnotification) · [Confirmation dialog](https://learn.microsoft.com/en-us/power-apps/developer/model-driven-apps/clientapi/reference/xrm-navigation/openconfirmdialog) · [navigateTo](https://learn.microsoft.com/en-us/power-apps/developer/model-driven-apps/clientapi/reference/xrm-navigation/navigateto)

Source: [AB-400: Client Scripting and Commands in Model-Driven Apps](https://learningpathx.com/news/ab-400-client-scripting-and-commands-in-model-driven-apps.html)
