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?
Xrm.Internal.DialogOptions. error here
If you're online then... stop using Xrm.Internal stuff. It doesn't work in UCI and Classic client is going away. You can check following posts:
This is Online
Thanks!
Hello,
Are you onprem or online?
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,188 Super User 2024 Season 2
Martin Dráb 230,030 Most Valuable Professional
nmaenpaa 101,156