Call CRM 2013 Modal window for webresources

we had requirement to implement CRM 2013 look alike modal window for some webresources. Following code can do the needful:

var DialogOption = new Xrm.DialogOptions;
DialogOption.width = 500; DialogOption.height = 420;
Xrm.Internal.openDialog(“Web Resource path”,
DialogOption,
null, null,
CallbackFunction);
function CallbackFunction(returnValue){ }

In our case, we needed custom UI like below:

image

Hope it helps!

Advertisement

12 thoughts on “Call CRM 2013 Modal window for webresources

  1. Hi, using the above approach, do you get any issue opening the webresource on an IFD CRM 2013. Works for OnPrem, but get a 500 error when IFD

  2. Hi deepesh, is there a way to pass custom parameters via url to the webresource which you are trying to open in the modal window?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s