Salesforce¶
Bring your Salesforce contacts and accounts into Daktela so agents know who is calling β and, with Integrations v2, log calls, e-mails and chats back to Salesforce as completed tasks.
What it does and when to use it¶
The Salesforce integration keeps a copy of your Salesforce CRM data in a Daktela CRM database:
- Contacts become Daktela CRM contacts.
- Accounts become Daktela CRM accounts, and each contact is linked to its account.
- Leads can be imported as Daktela contacts too (Integrations v2, optional).
Daktela offers two versions of the integration. Both are in Settings β Integrations, each on its own tab:
| Integrations v2 (tab Integrations v2, from version 33.1.0) | Original integration (tab Current) | |
|---|---|---|
| Contacts β Daktela | Yes, standard fields | Yes, standard and custom fields |
| Accounts β Daktela | All accounts | Only accounts that have a synced contact |
| Leads β Daktela contacts | Yes, optional | No |
| Calls, e-mails, chats and messages β Salesforce tasks | Yes | No |
| Sync interval | You choose (default 30 minutes) | Fixed, 30 minutes |
| Manual sync and full re-import | Yes | No |
| Set-up | Form or YAML editor, with ready-made defaults | Simple form and field pairing |
Which one to choose: use Integrations v2 when you want contact-centre activities logged in Salesforce, or need leads or all accounts in Daktela. Use the original integration when you need Salesforce custom fields (__c) on Daktela contacts, or when you import a large Salesforce org for the first time (see Limits). Don't run both for the same Salesforce org into the same CRM database β each creates its own copy of every contact.
Typical use cases
- Recognise customers. An incoming call, e-mail or chat is matched to the synced contact, so the agent sees the customer's name and account right away.
- Activity history in Salesforce (Integrations v2). Every finished call, e-mail, chat, SMS, WhatsApp, Messenger or Viber conversation is logged as a completed task on the contact in Salesforce.
- Call new leads (Integrations v2). Salesforce leads become Daktela contacts, so the contact centre recognises and can call prospects before they are converted.
- One source of truth. Sales keeps editing customers in Salesforce; changes reach the contact centre automatically.
Tip
To call from inside Salesforce, add the Salesforce CTI Panel. This integration brings Salesforce data into Daktela; the CTI panel brings Daktela calling into Salesforce.
Prerequisites and setup¶
Prerequisites¶
- In Salesforce: an administrator who can create an External Client App, and a Salesforce user the integration runs as. This user needs read access to contacts and accounts; for Integrations v2 also read access to leads (if you import them) and the right to create and edit tasks.
- For Integrations v2 activity logging: a custom text field on the Salesforce Activity object with the API name
Daktela_Activity_Name__c(for example Text, length 255). The integration stores the Daktela activity ID in it to avoid duplicates. Without it, tasks can't be written unless you change the activity mapping. - In Daktela: an administrator account with access to Settings β Integrations, and a CRM database to import the data into.
- For Integrations v2 also: a Daktela user with a permanent API token. The integration uses it to read activities and to create and update contacts and accounts in Daktela.
Steps 1β3 are the same for both versions. Steps 4 and 5 set up Integrations v2; for the original integration, continue with Set up the original integration instead after Step 3.
Step 1: Create an External Client App in Salesforce¶
- In Salesforce, open Setup (the gear icon) and search for External Client App Manager in Quick Find.
- Click New External Client App and fill in the Basic Information: an External Client App Name (e.g.
Daktela_Sync), the API Name (filled in automatically) and a Contact Email. - In the API (Enable OAuth Settings) section:
- Check Enable OAuth.
- Callback URL: any secure
httpsURL, for example your Daktela address. The client credentials flow doesn't use it. - Selected OAuth Scopes: add Manage user data via APIs (api).
- In the Flow Enablement section, check Enable Client Credentials Flow and confirm with OK.
- Click Save.
Step 2: Configure the OAuth policies¶
- In the External Client App Manager, open the drop-down next to your app and select Edit Policies.
- In OAuth Policies, check Enable Client Credentials Flow and in Run As select the Salesforce user the integration runs as.
- Click Save.
Step 3: Copy the consumer key and secret¶
- On the app's Settings tab, in OAuth Settings, click Consumer Key and Secret.
- Verify your identity if Salesforce asks you to.
- Copy the Consumer Key (client ID) and the Consumer Secret (client secret).
Note your Salesforce My Domain URL as well, e.g. https://yourcompany.my.salesforce.com (Setup β My Domain).
If you use the original integration, continue with Set up the original integration instead.
Step 4: Create a Daktela API token¶
In Daktela, go to Settings β Users, open the user the integration will act as and add a token under Persistent API tokens (see API tokens). We recommend a dedicated integration user.
Step 5: Connect Salesforce in Integrations v2¶
- Go to Settings β Integrations, open the Integrations v2 tab and click Configure on the Salesforce card.
-
Fill in the form:
Field What to enter Title A name for this configuration, e.g. Salesforce β Production.CRM database The Daktela CRM database the data is imported into. Daktela API token The token from Step 4. It is checked when you save. When you edit a saved configuration, leave it empty to keep the current token. Sync interval (minutes) How often the sync runs. Default 30. Enabled Switch on to start the scheduled sync. -
The Configuration YAML is pre-filled with a working default for Salesforce. Fill in the Salesforce section:
-
Adjust what is synchronised, if needed:
- Leads: the default configuration has a
leadscustom entity that imports Salesforce leads as Daktela contacts. It is off β set itsenabledtotrueto use it. - Activities:
activity_typeslists the Daktela activities logged to Salesforce:call,email,web(web chat),sms,fbm(Messenger),wap(WhatsApp),vbr(Viber). We recommend addinginitial_sync: nowto the activity section β without it, the first sync pushes all past closed activities to Salesforce. - Fields: check that the Daktela fields used in the default mappings (for example
customFields.industryor the address fields) exist in your CRM database, or change the mappings.
You can edit the YAML directly or switch to Form. The Documentation button on the Integrations v2 tab opens the full configuration reference.
- Leads: the default configuration has a
-
Click Save, open the configuration again and click Test connection. Then click Sync now, or wait for the next scheduled run.
Set up the original integration instead¶
- Go to Settings β Integrations, stay on the Current tab and click Configure under Salesforce.
-
Fill in the form:
Field What to enter CRM Database The Daktela CRM database the data is imported into. CRM Record type Leave empty β this integration imports no CRM records. Instance URI Your My Domain URL, e.g. https://yourcompany.my.salesforce.com.Client ID The consumer key from Step 3. Client secret The consumer secret from Step 3. -
Click Authorize.
- Under Contact pairing, choose the Salesforce field that fills each Daktela contact and account field, then click Activate. The first sync runs within 30 minutes.
Note
Since version 33.0.0 (and 32.17.0 and 31.26.0) the original integration signs in with the client ID and secret only. Older versions also asked for a Salesforce user name, password and security token; these fields are gone.
Technical details¶
| Topic | Integrations v2 | Original integration |
|---|---|---|
| Direction | Contacts, accounts and leads Salesforce β Daktela; activities Daktela β Salesforce. | Salesforce β Daktela only. |
| Connection | Runs inside Daktela and calls the Salesforce REST API directly (default v64.0). |
Through the Daktela integration service, which calls the Salesforce REST API v64.0. |
| Authentication | OAuth 2.0 client credentials (/services/oauth2/token), re-authenticates when the token expires; Daktela API token for the Daktela side. |
OAuth 2.0 client credentials, verified on Authorize; re-authenticates when the token expires. |
| What is read | SELECT FIELDS(STANDARD) from Contact, Account and, if enabled, Lead β standard fields only. |
The contact fields you paired plus the paired fields of the contact's Account; all fields, including custom ones, are offered for pairing. |
| Schedule | Every Sync interval minutes (default 30). Sync now starts a run within about 30 seconds. | Every 30 minutes. |
| Incremental sync | Records with LastModifiedDate since the last successful run. |
Contacts with LastModifiedDate after the previous run. The previous run counts even if it failed. From version 33.8.0 its time is sent in UTC, so records changed around a daylight-saving switch are no longer skipped. |
| Paging | LIMIT/OFFSET in pages of 200. |
Pages of 100, continued by CreatedDate so the Salesforce offset limit is not reached. |
| Order | Accounts, contacts, activities, then leads. | Accounts come with their contacts. |
| Activities exported | Closed activities only (from version 33.17.0). | β |
| Multiple configurations | Yes β add more with Instance β New instance. | Yes β one tile per configuration, titled with the Instance URI. |
How records are matched¶
- Integrations v2: a contact gets the Daktela unique name
sf_contact_<Id>, an accountsf_<Id>, a leadsf_lead_<Id>. The next run finds the record by this name and updates it. A contact is linked to its account throughAccountId. A lead's company is stored as text in the contact fieldcustomFields.company, together with the lead status and source; converted leads keep being imported. - Original integration: records get the unique name
<configuration ID>_<Salesforce ID>, and Daktela remembers the pairing per configuration. The SalesforceIdandNameare always paired automatically (Id β unique name, Name β title); all other fields follow your Contact pairing. Address fields are imported as one comma-separated text, and a URL field with a link to the record in Salesforce Lightning is available for pairing. - Because the naming differs, switching from the original integration to Integrations v2 creates new contacts and accounts β it doesn't take over the existing ones. Plan the switch (for example into a new CRM database) and deactivate the original configuration.
How activities are written to Salesforce (Integrations v2)¶
Every Daktela activity becomes a Salesforce Task:
| Daktela activity | Task Type |
|---|---|
| Call | Call |
Email |
|
| Web chat, SMS, Messenger, WhatsApp, Viber | Other |
- Subject and Description come from the Daktela activity, Due Date (
ActivityDate) is the day of the activity, and Status isCompleted. - Contact: the task is linked to the Salesforce contact (
WhoId) when the Daktela contact came from Salesforce. Activities of other contacts are logged without a contact. - Owner: the integration doesn't set an owner, so Salesforce assigns the task to the user the External Client App runs as.
- No duplicates: the Daktela activity ID is written to
Daktela_Activity_Name__c; a later run finds the task by it and updates it instead of creating a new one.
Limits¶
- Integrations v2 reads standard fields only. Salesforce custom fields (
__c) on contacts, accounts and leads can't be mapped to Daktela. - Integrations v2 and large imports. Salesforce SOQL accepts an offset of at most 2,000. If more than about 2,000 contacts, accounts or leads changed since the last run β typically on the very first sync of a large org β the rest may not be imported. Import large orgs with the original integration, or contact Daktela support.
- Original integration: accounts are imported only together with a contact; an account without contacts doesn't reach Daktela. Because the sync asks for changed contacts, a change made only on an account reaches Daktela the next time one of its contacts changes.
Re-sync options (Integrations v2)¶
- Re-import from CRM clears the import position, so the next run imports all contacts, accounts and leads again.
- Re-push activities resets the activity position. With
initial_sync: nowit starts again from the current time; to push the full history, setinitial_sync: everythingfirst.
Sync errors¶
- Integrations v2: a record that fails doesn't stop the run. If the whole run fails, the configuration dialog shows the Last error. Use Test connection to check both connections.
- Original integration: the tile in Settings β Integrations shows a warning. Open it to download an error file (CSV) listing each failed record with the reason. If Daktela can't connect to Salesforce at all, it also e-mails the administrators β once; the next e-mail comes only after a run has connected successfully and the connection fails again.

If the whole run fails (in either version), check first that the External Client App still has the client credentials flow enabled, that its Run As user is active, and that the consumer secret hasn't been regenerated.