Open custom page from modern command button
JS code function openPriceuploadpage ( primaryControl , firstSelectedItemId , selectedEntityTypeName ) { // price upload page var pageInput = { pageType: "custom" , name: "cd_pricelist_a8ed3" , entityName: selectedEntityTypeName , // "sample_review" recordId: firstSelectedItemId // "{087AA308-B321-E811-A845-000D3A33A3AC}" }; var navigationOptions = { target: 2 , position: 1 , height: 300 , width: 300 , title: "Pricelist Upload" }; Xrm . Navigation . navigateTo ( pageInput , navigationOptions ). then ( function () { // Refresh the main form when the dialog is closed...