Skip to main content

Posts

Featured

Open New Record Form with Pre-populated Fields Using Xrm.Navigation.navigateTo

This post will explain how you can pre-populate fields with various data types (lookup, partylist, etc.) when a new table form is opened using the Xrm.Navigation.navigateTo method. There is a  navigateTo (Client API reference) in the Microsoft Learn but it lacks a code example for the implementation of  data object parameter to set the default values to the fields when a form is opened in the create mode. The documentation simply referred to see Set column values using parameters passed to a form  which only contains an example to set column values using parameters passed to a form with Xrm.Navigation.openForm . Setting column values using parameters with Xrm.Navigation.navigateTo is different from Xrm.Navigation.openForm and it could take some trial and error to get it right without the code example or the documentation of expected parameters. With the code example below, I hope you can easily pre-populated any field using Xrm.Navigation.navigat

Latest posts

How to Fix Button in Modern Command Bar Disappearing After Grid Item Selection

Keep Your Dataverse Solution Clean and Simple

Refresh Main Form When New Child Row is Added in Subgrid via Quick Create Form in Model-Driven App

How to Embed Audit History on a Form in Model-Driven App

Hiding a Column Without Removing From a View in Model-Driven App

Dynamically List Rows From Any Dataverse Table with FetchXML in Power Automate

Generate Document From Word Template and Send As Email Attachment Using Cloud Flow

Formatting Section or Field Label as Bold/Italic in Model-driven App

Debugging Pre Operation Plug-In Without Plug-In Trace Log

Cloud Flows with Dataverse Trigger Not Working After Solution Import