Hi guys,
I created a custom page and after published, I'm planning to call this page (entry form) from a Main Grid of my Model-driven menu.
Following Reza's video -> https://www.youtube.com/watch?v=XMopL0r8k3k especially on minute 25:40 for the command designer, also this Microsoft Doc https://docs.microsoft.com/en-us/power-apps/developer/model-driven-apps/clientapi/navigate-to-custom-page-examples#open-as-an-inline-full-page-without-context here is my step :
- Get my logical name of Custom Page

function OpenCanvasExpense()
{
var pageInput = {
pageType: "custom",
name: "new_newexpensecustom_e990e",
};
var navigationOptions = {
target: 1
};
Xrm.Navigation.navigateTo(pageInput, navigationOptions)
.then(
function () {
{
).catch(
function (error) {
}
);
}
- Save and Publish
- Go to my Model-driven, Edit in Preview, look for my menu (Subarea), click three dots for Edit command bar

- Choose Main Grid
- Choose Add Command for new command button in that main grid.
- Set for calling the Web resource ->

The new button appear in my App, but nothing showing when I click the button.
Anyone can help what did I missed ?
Thanks