Skip to content
LearningPathX
Learning PathsFree TestsExam InfoHow it worksNews
Sign inChoose a certification
  1. Home/
  2. Certifications/
  3. AB-400/
  4. AB-400 Learning Path/
  5. Study FAQs/
  6. Which navigation, dialog or notification API should I use in a model-driven app?

Study FAQ

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

Exam · AB-400Knowledge domain · Extend the user experience (25–30%)Updated Nov 25, 2026
Also asked as 2
  • 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?

Answer

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 · Confirmation dialog · navigateTo

Full explanation

AB-400: Client Scripting and Commands in Model-Driven Apps

Study guide · AB-400

Read the full explanation →
← Back to AB-400 FAQsView learning path →

Related questions

How do I use environment variables for a code app's data source? →How do I read Dataverse table metadata in a Power Apps code app? →How do I deploy a Power Apps code app into a specific solution and share it? →How do I initialize and run a Power Apps code app locally? →How do I find what is slowing down a Power Apps code app? →How can a model-driven JavaScript command read a saved row instead of unsaved form values? →
LearningPathX

A focused path to certification, one clear step at a time.

© 2026 LearningPathX. All rights reserved.

Product

CertificationsLearning PathsFree TestsHow it worksNews

Company

SubscriptionHelp centerContact usPrivacyTerms

Follow us

Your privacy choices

We use analytics cookies to understand how LearningPathX is used and improve your learning experience. Analytics will only start after you accept.