“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.
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 firstname.lastname@example.org.
By: Hien Tieu – New Jersey Microsoft Dynamics CRM partner