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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Custom page is not opening on Custom Ribbon button click

(0) ShareShare
ReportReport
Posted on by 40

Hello All,

I have created a custom ribbon button in custom entity and on button click the custom page is not opening. I have create JavaScript and script is work in success but custom page is not opening.

Ribbon Button : 

pastedimage1664992199664v1.png

JavaScript Run Success : 

pastedimage1664992251228v2.png

JavaScript :


function openCustomPageUploadDocument(pageContext) {

var formContext = pageContext;

var pageInput = {
pageType: "custom",
name: "rw_uploaddocument_4d027", //Custom Page
entityName: formContext.data.entity.getEntityName(),
recordId: formContext.data.entity.getId()
};
var navigationOptions = {
target: 2,
position: 1,
width: 780,
height: 500,
title: "Upload Document"
};
Xrm.Navigation.navigateTo(pageInput, navigationOptions)
.then(
function () {
alert("Success...");
}
).catch(
function (error) {
alert("Error...");
}
);
}


why it is not worked please help me

Thanks & Regards,

Vijay 

I have the same question (0)
  • Suggested answer
    Abdul Wahab Profile Picture
    12,119 Moderator on at

    Hi vijay1234567,

    Double check the link: navigateTo (Client API reference) in model-driven apps - Power Apps | Microsoft Learn.

    Use static values first.

    If I answer your question then please mark it as verified.

    Let me know if I can provide you with more details.

    Thanks
    Regards,

    Abdul Wahab
    Power Platform & Customer Engagement Developer/Lead/Solution Architecture/Project Manager
    Direct/WhatsApp:+923323281237
    E-mail: abdulwahabubit@outlook.com
    Skype: abdul.wahabubit
    Linkedin: www.linkedin.com/.../

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    Doublecheck that your custom page is added to the model driven app you're trying to open it from.

  • vijay1234567 Profile Picture
    40 on at

    Hello Abdul,

    Thank you so much for your quick response.

    I have set static value but it is also not working.

  • vijay1234567 Profile Picture
    40 on at

    Hello Andrew,

    Thank you so much for your quick response.

    I have add custom page in in solution.

  • Suggested answer
    Abdul Wahab Profile Picture
    12,119 Moderator on at

    Hi vijay1234567

    Not only in the solution but in the model-driven app. 

    pastedimage1665033505705v1.png

    If I answer your question then please mark it as verified.

    Let me know if I can provide you with more details.

    Thanks
    Regards,

    Abdul Wahab
    Power Platform & Customer Engagement Developer/Lead/Solution Architecture/Project Manager
    Direct/WhatsApp:+923323281237
    E-mail: abdulwahabubit@outlook.com
    Skype: abdul.wahabubit
    Linkedin: www.linkedin.com/.../

  • vijay1234567 Profile Picture
    40 on at

    Thank you so much Abdul and Andrew,

    I was not add custom page in model  driven app and i have just add existing custom page in model driven app.so now custom page opened on button click.

    Now i am facing one more issue in custom page not show controls after open the custom page on button click.

    see here

    pastedimage1665034563463v2.png

    This is the custom page
    pastedimage1665034660688v4.png

    Thanks & Regards,

    Vijay

  • Verified answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Double-check that your custom page is saved and published.

    Do you use any PCF control on the page by a chance?

  • Suggested answer
    vijay1234567 Profile Picture
    40 on at

    Hello Andrew Butenko,

    Thanks for give me a solution it is  working now.

    Kind regards,

    Vijay Dantani

  • Verified answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    If my reply (or replies) answers your question take a minute and verify the answer. You can do it by clicking "Yes" at the top of the reply (or replies) under the label "Does this answer your question?"

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 Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 184 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 125

#3
CU11031447-0 Profile Picture

CU11031447-0 100

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans