How to disable click-to-dial phonecall popout

When you do a click-to-dial in Dynamics CRM, a new phonecall activity is automatically opened in CRM for you. Dynamics Telephony also adds a phonecall activity, so you can end up with 2 for the one call. Follow this procedure to suppress the phonecall popout that CRM creates.

WARNING: THIS IS AN UNSUPPORTED CUSTOMIZATION, but it can be easily removed.

1. Create a JavaScript Webresource in CRM and paste in the following code into the Text Editor as shown in the screenshot belowsuppress_c2d_popout_webresource

function suppress_C2D_Popout() {
  parent.Mscrm.ReadFormUtilities.openPhoneClient = function(phoneNumber) {
    if (!IsNull(phoneNumber)) {
      parent.Mscrm.Shortcuts.openPhoneWindow(phoneNumber, window.PHONE_NUMBER_DEFAULT_COUNTRY_CODE,"True");
    }
  };
}

 

2. Add the webresource to the Form you want to be affected by this change. E.g. just the Contact form. Link the JavaScript function suppress_C2D_Popout, to the Form.OnLoad function. See screensnap below.

suppress_c2d_popout_form_properties