I am using Dynamics CRM onPrem version 9.0.10,
In the unified interface I try to use navigateTo function as documented in here :
But I am getting an error in the error callback function that says that an error occured with this code -2147220715,
Here is my code :
var pageInput = {
pageType: "webresource",
webresourceName: "el_AddBenefits.html" // my html page - name taken from crm
};
var navigationOptions = {
target: 2,
width: 400,
height: 300,
position: 1
};
Xrm.Navigation.navigateTo(pageInput, navigationOptions).then(
function success(result) {
debugger;
// Handle dialog closed
},
function error(result) {
debugger;
// Handle errors - here i am getting my -2147220715 error
}
);
el_AddBenefits.html
or is it justel_AddBenefits
– AnkUser