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 / Xrm.Navigation.navigat...
Power Apps
Answered

Xrm.Navigation.navigateTo with formId as parameter

(0) ShareShare
ReportReport
Posted on by 169

Hello,

 

I'm trying to open a form in create mode in a modal.

Xrm.Navigation.navigateTo works fine when not passing formId as a parameter:

 

 

 var pageInput = {
 pageType: "entityrecord",
 entityName: "tt_timereport",
 };
 var navigationOptions = {
 target: 2,
 height: { value: 80, unit: "%" },
 width: { value: 70, unit: "%" },
 position: 1
 };

 Xrm.Navigation.navigateTo(pageInput, navigationOptions).then(
 function success(result) {
 console.log("Record created with ID: " + result.savedEntityReference[0].id +
 " Name: " + result.savedEntityReference[0].name)
 // Handle dialog closed
 },
 function error() {
 // Handle errors
 }
 );

 


but it does not work at all with formId: 

 

 

 var pageInput = {
 pageType: "entityrecord",
 entityName: "tt_timereport",
 formId = "6091111-808C-4C76-A206-F0B11116F52"
 }

 

 

I should also mention that I have included this form (it is a main form, the second main form in this app) in the App Designer.

 

Thank you

 

I have the same question (0)
  • Verified answer
    a33ik Profile Picture
    3,306 Most Valuable Professional on at

    Try to use the following:

     var pageInput = {
     pageType: "entityrecord",
     entityName: "tt_timereport",
     formId: "6091111-808C-4C76-A206-F0B11116F52"
     };

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