Feedback

  • Contents
  • Index
 

Click-to-dial component

The click-to-dial component adds the click-to-dial functionality to a custom Visualforce page and allows you to assign attributes for entityId and params. entityId and params pull data from the Apex controller to populate the Name and Related To text boxes in PureConnect for Salesforce and to auto-associate with an activity on a Salesforce page.

<apex:page standardController="Account" extensions="CustomClickToDialController" showHeader="true">

<support:clickToDial number="3172222222" entityId="{!id}" params="{!json}"/>

</apex:page>

  • number: the number to be dialed

  • entityId (optional): the ID of a relevant object such as a contact or an account to auto-associate with an activity

  • params (optional): a JSON string for a single object or an array of objects to auto-associate with an activity

    Use the following format for the params attribute:

{

“Id”: “00AB0000001C2dE”,

“Name”: “John Smith”,

“attributes”: {

“type”: “Contact”

}

}

The Salesforce JSON.serialize API uses this format to serialize objects such as contact and account.

Note: Although entityId is only for a single record, by using params you can add more records to Name and Related To in the call logs. For more information about this component, see the Visualforce Developer Guide.