web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Help with Xrm.Navigati...
Power Apps
Unanswered

Help with Xrm.Navigation.navigateTo parameters

(0) ShareShare
ReportReport
Posted on 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

I have the same question (0)
  • Cosmic_Kitchen Profile Picture
    105 on at

    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!

  • Linn Zaw Win Profile Picture
    2,996 on at

    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)

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard