How to enable outbound communication (ClickToAct) in Dynamics 365 Channel Integration Framework 1.0
Important
Minimum versions required to use this feature without any customizations.
- Platform version: 9.1.0000.15343
- Dynamics 365 Channel Integration Framework 1.0: 9.1.0.412.
You can enable outbound communication by these two options:
- Using customizations on the phone control. Follow steps 1 through 4.
- Without any customizations. Follow steps 1, 3, and 4.
To enable outbound communication for your channel, you must perform the following:
Step 1: In the channel provider configurations, set the Enable Outbound Communication field to Yes.
Step 2: In the Unified Interface form, add the Channel communication control to the Phone field for which you want to enable outbound communication (ClickToAct), and publish the customizations.
Step 3: Register the addhandler in your JavaScript code using
Microsoft.CIFramework.addHandler("onclicktoact", <handlerFunction>)Step 4: Select on the mobile phone icon to trigger the
onclicktoactevent.
Step 1: Set the Enable Outbound Communication field value in the channel provider configuration
Sign in to your Power Apps portal.
Under the available apps, select the ellipses to the right of Omnichannel for Customer Service or Customer Service workspace.
On the menu that appears, select App profile manager.
On the app profile manager page, expand Omnichannel for Customer Service or Customer Service workspace and select Channel provider.
Select your channel provider from the list, and set the Enable Outbound Communication field to Yes.
Step 2: Add the Channel Communication Control to the Unified Interface form
You can add the Channel Communication Control based on your organization and business requirements. The steps below describe how to add the Channel Communication Control for the Contact form of Main type under the Contact entity.
Sign in to Dynamics 365.
Go to Settings > Customizations.
Expand Entities > Contact and select Forms.

Select the Contact form of the Main type from the list.

Select the phone field for which you want to add the control. Double-click the Business Phone or Mobile Phone field.
The Field Properties dialog appears.In the Field Properties dialog, choose Controls tab, and select the Add control... option.

In the Add Control dialog, choose Channel Communication Control, and select Add.

In the Field Properties dialog, select the radio buttons for Web, Phone, and Tablet, and then select Ok.

Select Save, and then select Publish to publish all customizations.
Step 3: Register the addHandler in JavaScript code using the onclicktoact event
During the initialization of the function, register the handler for the onlicktoact event.
function initCTI() {
Microsoft.CIFramework.setClickToAct(true);
Microsoft.CIFramework.addHandler("onclicktoact", clickToActHandler);
log("Added clickToActhandler to the panel");
}
Make sure to add initCTI, which is an initialization method in the softphone sample code, in your own initialization code.
Step 4: Select the mobile phone icon to trigger the onclicktoact event
Select the mobile phone icon to trigger the onclicktoact event, as shown below.
| Mobile phone with customizations | Mobile phone icon without customizations |
|---|---|
Note
Dynamics 365 Channel Integration Framework invokes the onclicktoact event only if you programmatically set the setClickToAct API to true or by configuring the Enable Outbound Communication to Yes in the channel provider configurations.
See also
الملاحظات
إرسال الملاحظات وعرضها المتعلقة بـ