On this page |
|
📋 What it's about
Salesforce Integration is used to automatically open a task for every call according to the conditions (Queue, Call status or Outbound) set in the trigger: the Salesforce Task or Case that will be created automatically , will be populated with information about the call (managed on XCALLY) and displayed to the agent in the Salesforce environment.
Moreover, with the Integration Tab Integration, it is possible to use the ClicktoCall / LogCall Integration. For instance, from a Salesforce customer tab you can just click on the telephone number and start a conversation with the contact (using the Phonebar): in this case, a new Task object will be created and opened in a dedicated tab, containing all updated information regarding the phone call.
Requirements
Panel | |
---|---|
|
|
|
|
|
|
|
|
|
|
|
⚙️ Salesforce Configuration
Create a New Connected App
Login to Salesforce with an Administrator account.
When you register your Salesforce account, you will receive an email to verify it and you can see also your Salesforce URL (which you will insert also in XCALLY configuration, in URL field)Switch to Lightning Experience.
From the Homepage, access the Setup section
From Apps → App Manager, create a New Connected App
Enter the following data into the New Connected App:
Retrieve the Client ID and Secret
Login to Salesforce with an Administrator account
From Apps → App Manager → enter the app
In the API section, click on Manage Consumer Details
Verify your identity (email with verification code could be sent in the spam folder)
Copy the Consumer Key (Client ID) and Secret (Client Secret)
Retrieve the Token
When you set the Salesforce user password, you will receive an email with the Security Token. Save it!
If you don’t remember the token or want to reset it:
Login to Salesforce with an Administrator account
From the Homepage, access the Settings section
From My Personal Information → Reset My Security Token, click on Reset Security Token
You will receive an email with the actual security token. Save it!
Please note that any time you change the Salesforce user password, the Token becomes invalid and must be reset: remember to insert the new one on the XCALLY Salesforce Account to make integration work!
OAuth and OpenID Connect Settings
Finally you need to allow OAuth Username-Password Flows to avoid authentication failure
From Identity → OAuth and OpenID Connect Settings → switch on Allow OAuth Username-Password Flows
(Remember to keep disable PKCE extension to avoid application working issue)
Create a Call Center Adapter
Login to Salesforce with an Administrator account
From the Homepage, access the Setup section
From Feature Settings → Service, enter the Call Center section and click Continue
Click on Import and upload call_center.xml (Remember to insert the real IP address of your XCALLY Motion Server)
You will see the imported Call Center, called Motion Call Center Dialpad
Edit the Call Center Adapter:
Expand | ||
---|---|---|
| ||
In order to visualize the Asterisk* variable content inside a custom field:
Now the Activity Task Tab created by LogCall will show the Asterisk* variable content inside your own custom field. |
Call Center Users: Enable Users to use the integration by clicking on the Manage Call Center Users button and then Find and Add new Users to the Call Center:
Create lightning experience app
Go to App → App Manager and click on New lightning App
Fill the required setting as shown below and click Next
In “App Options” Select Console navigation and click Next
Click on Add and select openCTI softphone.
Customize the layout of the softphone as you desire and then click Next
Add items to use in the app: Select Leads, Contacts and Tasks
Select user profiles to give them permission to use and see the app. Choose the profiles your agents belongs belong to and click Finish
Click on App launcher button at the top left of the screen and you will see the new Motion App
⚙️ Install the Motion Dialpad Chrome extension
You need to install xCALLY XCALLY Motion Dialpad Chrome extension to use Phone functionality in Salesforce Console App.
The Chrome Extension is available https://chrome.google.com/webstore/detail/xcally-motion-dialpad/jpkfmllgncphdgojhkbcjidgeabaible?utm_source=chrome-ntp-icon in the Chrome Web Store.
Make Motion Dialpad to not create the Recording URL and leave the task to Triggers only
You must disable Salesforce Task creation from dialpad integration, here are the steps to follow:
Click on the setup icon
Search the Call Center setting and change the Motion Dialpad configuration
Change the settings under the "Manage Task" section. From true you must pass them to false.
After doing this they can re-enable the triggers so as not to create the task 2 times for the same call.
XCALLY Configuration
Create a Salesforce Account
To create a new Salesforce Account go in to the Integrations section → Salesforce Accounts and click on
After the Account is created, you can view it in the list of accounts, edit the account parameters and remove the account.
You can verify if the account credentials are correct by clicking on Test Salesforce Account.
Edit the Salesforce Account
Find the account from the accounts list and Click on Edit Salesforce Account:
You will see two tabs: Account and Configurations:
In the Account tab, you can modify the account parameters and in the Configurations tab, you can create, update or delete Salesforce configurations.
A Salesforce configuration is used to design the content of the Salesforce task (Subject, Description and Fields) that is created and displayed for the Agent managing calls.
You can create multiple configurations for a single Salesforce Account and use them in different triggers. In this way, for example, you will be able to use different task layout layouts for outbound and inbound calls.
Note |
---|
Configuration changes are automatically applied, without any service restart. |
To create a new configuration, Edit the Salesforce account, go under the configurations tab and click on
Subjects
By default, you will find the following three fields already configured
the String [XCALLY Ticket]
the Queue Variable
the Caller number Variable
You can add more than one field in the Subject and all fields will be joined by the blank space.
Use button to add a new fields. New fields are added at the end of the field list.
You can insert 3 different type of fields:
String: static string e.g. a label as [xCALLY Ticket]
Variable: Motion System Variable, e.g. queue or calleridnum (see V3 Motion Variable List)
Custom Variable: any dynamic variable created under Tools > V3 Variables
Descriptions
You can add more than one field in the Description. All fields will be joined by new line.
Use button to add a new Description (it will be added at the bottom of the list).
You can insert two different type of fields:
String: static string e.g. *** Call Info ***
Key Value: name-value item in the form name: value
where the first field is a static string (e.g. Caller Number) and the second field could be filled with the following:
String: static string
Variable: System Variable like Caller Number (see V3 Motion Variable List)
Custom Variable: dynamic variable created under Tools > Variables
The colon character in the Key Value type is automatically added by the system
Fields
In the drop-down list you can find the complete list of fields available in your Salesforce account: Standard and Custom fields.
Use button to add a new field, choose the Standard or Custom field by scrolling the list of the values.
Define the Type:
String: static string (you must insert it)
Variable: a System Variable (choose it from the list: e.g. Queue, uniqueid, calleridnum, etc.)
Custom Variable: one of the dynamic variables (created under Tools > Variables)
Picklist: choose among the list of the integrated Application Fields. You can only select one of the predefined values available for that field (if any).
Repeat the steps above to add more fields.
Info |
---|
The only custom fields that can be configured are those of the following type: string, int, picklist, boolean, email, textarea and phone (other field types are not proposed in the configuration) |
Advanced
🔌 Configure the Trigger
It is mandatory to create a Trigger to make the Salesforce integration work.
Go to Tools → Triggers Section and click on .
Add Trigger Conditions
You can use properties like Queue, Call status or outbound to define the conditions you want to trigger the Salesforce integration.
Example: the integration will be active for Calls in Sales Queue and when the call is answered.
For more information on trigger conditions, take a look at Voice Trigger Conditions.
Add Trigger Action
To execute the Salesforce integration when the conditions are met, click on Add Action and select Integrations and Salesforce.
You can then select one of the the Salesforce account you have created and the configuration you want to use.