Skip to main content

Notifications

Community site session details

Community site session details

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

Custom Page is opening on command click but not loading fields

(0) ShareShare
ReportReport
Posted on by 35

Hello,

currently my custom page looks like on this screenshot, its opening on clicking the command

but its not loading the fields I added.

pastedimage1682364289095v1.png

Originally it looks like this

pastedimage1682364388846v2.png

1. I saved and published everything, 

2. I added it to the Model driven app

3. And the code to open via command looks like this

function openCustomPage(pageContext){

    Xrm.Navigation.navigateTo({

       pageType: "custom",  
       name: "skt_itdecline_8da2b",  
       entityName: pageContext.data.entity.getEntityName(),  
       recordId: pageContext.data.entity.getId()

    },
    {
    target:2,
    width: 400,
    height: 600
})
.then(function(){
    pageContext.data.refresh();
})
.catch(console.error);
}
  • smar.sus Profile Picture
    35 on at
    RE: Custom Page is opening on command click but not loading fields

    That worked perfectly !!!!

    Thank you so much

  • Suggested answer
    XM-22040801-0 Profile Picture
    11 on at
    RE: Custom Page is opening on command click but not loading fields

    Hi,

    Can you try to replace :

    recordId: pageContext.data.entity.getId()

    by

    recordId: pageContext.data.entity.getId().replace(/[{}]/g, "");

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 671 Super User 2025 Season 1

#2
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 167 Super User 2025 Season 1

#3
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 138 Most Valuable Professional

Product updates

Dynamics 365 release plans