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 / custom page does not o...
Power Apps
Unanswered

custom page does not open in model driven app

(2) ShareShare
ReportReport
Posted on by 603

Hi all,

 

I've a custom page created (with schema name "vi_uploadhubblereport_ca3ef"). 

I add a custom command to the form to open the custom page with the record guid.

 

To do that, I've added the follow js code as web resource to my solution:

function openCustomPage(formContext)
{
var pageInput = {
 pageType: "custom",
 name: "vi_uploadhubblereport_ca3ef",
 recordId: formContext.data.entity.getId().replace(/[{}]/g, ""),
};
var navigationOptions = {
 target: 2, 
 position: 2,
 width: {value: 500, unit: "px"}
};
Xrm.Navigation.navigateTo(pageInput, navigationOptions)
 .then(
 function () {
 // Called when page opens
 }
 ).catch(
 function (error) {
 // Handle error
 }
 )};

My settings for the commandbar:

dennisb88_0-1656508737002.png

 

When I press the new command control from my main form, there is nothing happens. The custom page will not be opened and also there is no error or something else happens.

 

Does anyone know what I doing wrong.

 

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

    Hello,

    I know what is wrong exactly - in order to make the page working in model driven app you have to add this page to that model driven app. Check this post - https://dianabirkelbach.wordpress.com/2021/07/29/how-to-make-dialogs-for-model-driven-apps-using-custom-pages/

  • dennisb88 Profile Picture
    603 on at

    You're totally right! Thanks!

  • EricFai Profile Picture
    44 on at

    Thank you! Finally got this working after days of troubleshooting. I should have searched here earlier.

  • foxpower Profile Picture
    17 on at

    Thank you! All these months later, this helped me figure this out!
    I was stuck for a few hours, because I knew my custom page was in my SOLUTION, so I thought I could delete it from the App itself.

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard