Open Dialog Process in Microsoft Dynamics CRM 2013 using JavaScript

By - December 18, 2014

For those of us who are familiar with calling Dialog process through custom JavaScript in Microsoft Dynamics CRM 2011, you will most like run into the scripts below.

“var returnValue = showModalDialog(“/” + Xrm.Page.context.getOrgUniqueName() + “/cs/dialog/rundialog.aspx?DialogId=%7b” + dialogId + “%7d&EntityName=account&ObjectId=” + Xrm.Page.data.entity.getId());”

The “showModalDialog” part does not work anymore in Dynamics CRM 2013 to call Dialog process. There are other call methods to make calling Dialog process work in Dynamics CRM 2013, but some end up being unsupported scripts.

Through some digging, I stumbled upon this MS CRM 2013 MSDN, Open forms, views, dialogs and reports with a URL article that explains how to open Dialog using a supported method.

The JavaScript:

Open Dialogue JavaScript 1

Then you call the function named openDialogProcess OnLoad or Onchange.

If you need help with implementing custom processes in Dynamics CRM, RSM experience and expertise offers a full range of services from implementation and optimization to development and support. Contact our professionals for more information on our services at 855.437.7202 or crm@mcgladrey.com.

By: Hien Tieu – New Jersey Microsoft Dynamics CRM partner

Receive Posts by Email

Subscribe and receive notifications of new posts by email.