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

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Open a custom page from a model driven app

(0) ShareShare
ReportReport
Posted on by 27

Hi everyone,

I am trying to open a custom page from a model driven app from a custom button selected from the command designer. Unfortunately the custom page does not open when the button is clicked.

I have trawled through the forums trying to identify the cause but I have not come to a solution.

Fixes attempted:

  • Used static values first to diagnose the problem
  • Doublechecked the custom page is added to the model driven app as well as from the Solution
  • Published the custom page and the model driven app and published all customisations on every change
  • Used the logical name of the custom page as opposed to the display name


    7571.picture1.jpg


  • Ensured you have capitalised the “I” – it should be recordId. However, I have not even got to this point yet because the custom page does not even load

1651.picture2.jpg

Below is the java script from @dianabirkelbach, only the custom page name has been modified: https://dianabirkelbach.wordpress.com/2021/07/29/how-to-make-dialogs-for-model-driven-apps-using-custom-pages/

function openCustomPage(pageContext){
   Xrm.Navigation.navigateTo({ 
      pageType: "custom",  
      name: "new_samplecustompage_off9d",  
      entityName: pageContext.data.entity.getEntityName(),  
      recordId: pageContext.data.entity.getId()
   }, {
   target:2, 
   width: 700, 
   height:400}
   )
  .then(console.log).catch(console.error);
}

7824.picture3.jpg

Command Designer:

5732.picture4.jpg

Troubleshooting tips already read:

Any support would be appreciated.

Best regards,

I have the same question (0)
  • Suggested answer
    Ami K Profile Picture
    27 on at
    RE: Open a custom page from a model driven app

    Hi everyone - I tried everything above on a different model driven app in a different solution in the same environment, and the button successfully launched the custom page.

    Unfortunately I cannot identify what is different between both apps, but I guess this is one more test you could do if you're experiencing the same issue.

  • Community member Profile Picture
    2 on at
    Open a custom page from a model driven app
    I got the similar issue.
    For me the solution was to include the "Custom Page" in the "Model Driven App". Again, not just include the "Custom Page" inside the Solution, but also inside the "Model Driven App"
     
     
  • Community member Profile Picture
    2 on at
    Open a custom page from a model driven app
    Just launch your model-driven app and navigate to the table where you've implemented a dialog, like my contacts table. Choose a record and then select your customized command from the ribbon. That's it! Now you can use Canvas Apps as pop-ups within model-driven apps. slope

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Sahan Hasitha Profile Picture

Sahan Hasitha 169

#2
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 65

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 63 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans