Post

Build model-driven app dialogs with Generative Pages

Diesen Beitrag auf Deutsch lesen

Use navigateTo to open a Generative Page dialog, pass context through pageInput, and return selected Dataverse records to the calling form.

Original article from October 3, 2026: How To Make Dialogs With Generative Pages, by Diana Birkelbach, on Dianamics PCF Lady. Read the original

This is our own summary, not a republication or full translation.

TL;DR

Generative Pages in Power Apps model-driven apps can open as dialogs through Xrm.Navigation.navigateTo with pageType generative and target 2. Callers pass entityName, recordId, and custom data; pages can return project and milestone records through result.returnValue. The output and closing pattern described is undocumented, so use it cautiously.

Why it matters

  • Makers: Use pageInput data, entityName, and recordId to turn a Generative Page into a contextual picker dialog.
  • Makers: Handle result.returnValue to populate Dataverse lookups with returned record IDs, names, and logical table names.
  • Admins/IT: Watch the undocumented setPageOutput and navigateBack pattern because its support status or signature may change.

Frequently asked questions

How do you open a Generative Page as a dialog in a model-driven app?

Call Xrm.Navigation.navigateTo with pageType generative and target 2. Callers pass entityName, recordId and custom data as context.

How can a Generative Page dialog return selected Dataverse records to the caller?

Through result.returnValue, which can carry back project and milestone records to populate Dataverse lookups in the calling form.

Is the output and closing pattern for Generative Page dialogs officially documented?

No. The setPageOutput and navigateBack pattern is undocumented, so admins should watch for its support status or signature to change.

Summary by KMUpower, licensed under CC BY 4.0 . Rights to the original article remain with its author.