This article explains how to enable the Click2Dial-functionality of TelephoneIntegration (TI) for CRM 2013/2015/2016 and Dynamics 365 without using the CallNumber button in the ribbon.
This feature allows you to start an outgoing call through hitting directly on a telephone number in the CRM form via the TI Client. CRM already has a builtin Click2Dial feature, but its use is limited only to Skype or Skype for Business (Lync) client.
Instead of calling via the default Skype or Lync client, we can alter it so that the call is triggered over our TI Client/default communication plugin.
How to extend the Click2Dial functionality for TI?
1) To enable the functionality, open CRM > Settings > Customizations > Customize the System.
In the next window select Web Resources in the tree-view and click on the [New]-button.
2) Use the next window to create a new web resource. The name does not really matter. Here, we use new_ PTMTIReplaceCallHandler. The important settings are the Type and the Script.
3) Next, download the below file, unzip it and upload the script.
For Dynamics 365 take this: PTMTIReplaceCallHandlerDyn365.zip
For older CRM versions take this:: PTMTIReplaceCallHandler.zip
4) Once done so, click on the [Save]-button and afterward on the [Publish]-button.
5) Next, open a CRM record for which you want to enable this feature. (here: Contact) Here, open the Form-Editor.
6) Now click on the [Form Properties]-button.
7) In the Form Properties-dialog, the before created web resource must be selected. Click on the upper [+Add]-button (in the Form Libraries - section) and a Look-up record-window will pop up.
After the web resource has been selected, click on the [Add]-button in the Look-up record-window.
8) Back in the Form Properties-dialog, we must define the Start-function of the script. To do so, click on the lower [+Add]-button (in the Event Handlers-section). Now select the web resource and type in the function name (here PTM_TIStartReplaceCallHandler). Click on the [OK]-button.
9) Finally, the Form Properties-dialog will look like this:
10) To complete the configuration, click on the [OK]-button. Then click on the [Save]-button and afterward on the [Publish]-button in the form editor.
After reloading Contact in CRM (press F5), the Click2ToDial-functionality will be enabled.
Please note: If you want to enable this feature on additional forms, you simply have to select the corresponding web resource and define the corresponding start-function.
This section is only relevant for you if dialing out does not work as expected when clicking a number directly in the form.
First please make sure that dialing out by hitting the default TI button works as expected:
Only if this is the case it has to be a problem with the Click2Dial script.
Then follow these steps to get more information.
Add the "debug:true" text to the function call, as you can see in the figure below:
Next, save and publish.
After reloading the entity record you will see alerts on page load and on click of a number, like:
Please note that every CRM user using this form will get these alerts.
That’s it! We appreciate your feedback! Please share your thoughts by sending an email to email@example.com.