Now create a web resource win dynamics 365 using the below code.
function onChange(selectedItems) {
var selectedItem = selectedItems[0];
var pageInput = {
pageType: “custom”,
name: “Schema name of the custom page”,
entityName: “crmonce_account”,
recordId: selectedItem.Id,
};
var navigationOptions = {
target: 1,
height: { value: 80, unit: “%” },
width: { value: 70, unit: “%” },
position: 1
};
Xrm.Navigation.navigateTo(pageInput, navigationOptions).then(
function (sucess) {}
).catch(
function (error) {}
);