Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Open a custom page from a model driven app

Posted on by 100

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,

  • 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
  • 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"
     
     
  • Suggested answer
    Ami K Profile Picture
    Ami K 100 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.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templates⚡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,219 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,056 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans