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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / custom page does not o...
Power Apps
Answered

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard