Hello,
currently my custom page looks like on this screenshot, its opening on clicking the command
but its not loading the fields I added.
Originally it looks like this
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);
}