Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 5GPA7mJ/OQJWSk9UqgyZ8Z
Power Apps - Microsoft Dataverse
Unanswered

Help with Xrm.Navigation.navigateTo parameters

Like (0) ShareShare
ReportReport
Posted on 2 Dec 2022 17:22:08 by 105

Hey,

 

When using Xrm.Navigation.navigatTo() within the pageInput parameter, there is a property called data, which is an object that lets you specify default values for fields on the form that is being navigated to. 

 

I'm trying to figure out the format or just see an example of that. The Microsoft docs links to a page that doesn't make sense to me as I'm a rookie. The link to follow starts talking about populating the extraqs url parameter.

 

Cosmic_Kitchen_0-1670001179030.png

 

 

Would it look something like this:

let pageInput = {
 pageType: 'entityrecord',
 entityName: cloneEntity,
 entityId: newRecordGuid,
 data: {
 prefix_fieldName: 'DEFAULT FIELD VALUE'
 }
};
Xrm.Navigation.navigateTo(pageInput).then(
 (success) => {
 // successCallback
 },
 (error) => {
 // errorCallback
 }
);

 

 

Thanks

  • Linn Zaw Win Profile Picture
    2,982 on 04 Mar 2024 at 14:17:44
    Re: Help with Xrm.Navigation.navigateTo parameters

    I have also written a blog post about it with code example for setting fields with various data types, including lookup and partylist. (in case anyone else is having an issue with complex data types)

  • Cosmic_Kitchen Profile Picture
    105 on 02 Dec 2022 at 17:39:52
    Re: Help with Xrm.Navigation.navigateTo parameters

    I preemptively posted this question, but was able to do some testing and it looks as though the above syntax is correct. 

     

    It worked for me, but if you still see an issue, let me know!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,660 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard

Featured topics

Loading started
Loading complete