Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Microsoft Dataverse

#1
stampcoin Profile Picture

stampcoin 17

#2
mmbr1606 Profile Picture

mmbr1606 13 Super User 2025 Season 1

#3
ankit_singhal Profile Picture

ankit_singhal 11 Super User 2025 Season 1

Overall leaderboard

Featured topics

Loading started