I want to pop-up a dialog with the url I passed in. Here is the code:
function DisplayNativeDialog(url, callback) {
var DialogOptions = new Xrm.Internal.DialogOptions();
DialogOptions.width = 500;
DialogOptions.height = 700;
window.parent.Xrm.Internal.openDialog(
window.parent.Mscrm.CrmUri.create(url).toString(),
DialogOptions, null, null, callback);
}
But I am getting error saying DialogOptions is not a constructor...
I think I need to update this JS for v9.0. Is there any replacement code I can use?