K2¶
Bring your customers from the K2 ERP system into the Daktela CRM, so agents know who is calling or writing before they answer β without switching to K2.
What it does and when to use it¶
The K2 integration regularly imports data from your K2 system into a Daktela CRM database:
- Contact persons become Daktela CRM contacts.
- Business partners become Daktela CRM accounts, and each contact is linked to its partner.
Data flows one way, from K2 to Daktela. K2 stays your master system; Daktela keeps an up-to-date copy that agents work with. Orders and other K2 documents are not imported.
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 company right away.
- Give agents context. Agents see the K2 data you choose β for example the customer number or address β in Daktela's CRM while they handle the interaction, without opening K2.
- Keep one source of truth. Your back office keeps editing customers in K2; changes reach the contact centre automatically within half an hour.
- Connect several K2 systems. If you run more than one K2 installation, you can connect each of them.
Tip
Daktela offers similar integrations for other ERP systems, such as ABRA and SAP Business One. See CRM Synchronisation Integrations for the full list.
Prerequisites and setup¶
Prerequisites¶
- In K2: the K2 REST API (the K2 REST service) running and reachable over the internet, and a K2 user that may use it. Your K2 administrator or K2 partner can set this up.
- In Daktela: an administrator account with access to Settings β Integrations, and a CRM database to import the data into.
Step 1: Get the K2 REST API details¶
Ask your K2 administrator for:
- the URL of the K2 REST service, for example
https://k2.yourcompany.com/restservice; - the user name and password of the K2 user that Daktela will sign in as.
Make sure the REST service can be reached from the internet, not only from your internal network β Daktela connects to it from the cloud.
Step 2: Connect K2 in Daktela¶
- In Daktela, go to Settings β Integrations and click Configure under K2.
-
Fill in the connection form:
Field What to enter CRM Database The Daktela CRM database the K2 data is imported into. CRM Record type Leave empty. K2 doesn't import orders, so this field isn't used. Webserver URL The URL of the K2 REST service from Step 1, for example https://k2.yourcompany.com/restservice.Username The K2 user name from Step 1. Password The password of that K2 user. -
Click Authorize. Daktela checks that it can reach K2 with these credentials.
Step 3: Pair the fields¶
- A list of your Daktela CRM fields opens. Under Contact pairing, choose the K2 field that fills each Daktela contact field (from K2 contact persons) and each account field (from K2 business partners).
- Click Activate.
The first synchronisation runs within 30 minutes.
Technical details¶
| Topic | Behaviour |
|---|---|
| Availability | From version 30.0.0. |
| Direction | One-way, K2 β Daktela. Nothing is written back to K2. |
| Connection | Daktela passes the credentials to the Daktela integration service, which calls the K2 REST API on its behalf. The K2 REST service must therefore be reachable from the internet. If you allow access only from certain IP addresses, ask Daktela support which addresses to allow. A self-signed certificate on the K2 server is accepted. |
| Authentication | K2 signed requests. Every request carries the header Authorization: <username>:<signature>, where the signature is the Base64-encoded HMAC-MD5 hash of the upper-cased request URL, keyed with the password. The password itself is never sent. |
| K2 objects | Contact persons (TContactPersonDM) β contacts, business partners (TPartnerDM) β accounts, read from <Webserver URL>/Data/<object>. |
| K2 API versions | Both the older and the newer K2 REST API are supported. When you click Authorize, Daktela calls /Meta/version and, if that doesn't exist, /Meta/. The field lists for Step 3 come from /Meta/objects/<object> or, on older K2, /Meta/<object>. |
| Schedule | Every 30 minutes. |
| Incremental sync | Each run asks only for records whose ChangedOn date is later than the previous run. The first run imports all contact persons and partners. |
| Batch size | Records are fetched in pages of 100, following the next-page link that K2 returns. |
| Order of entities | Partners (accounts) first, then contact persons β so a contact can always link to its partner. |
| Not supported | Orders and other K2 documents. Records deleted in K2 are not deleted in Daktela. |
| Multiple configurations | You can connect more than one K2 system, or import into more than one CRM database. Each configuration has its own tile, titled with its Webserver URL. |
How records are matched¶
- Every imported contact and account gets the Daktela unique name
<configuration ID>_<K2 Id>. Daktela remembers this pairing, so later changes in K2 update the same Daktela record instead of creating a duplicate. - The K2 Id always fills the unique name automatically; the contact person's full name (FullNameCalc) and the partner's Name fill the title. All other fields follow your pairing from Step 3.
- Contact β partner: a contact person is linked to the account of the partner it belongs to in K2. The partner's details come from the partner import, not from the contact.
- If you delete an imported record in Daktela, the next run does not recreate it; it reports it as an error instead.
Sync errors¶
If a run fails β the integration service can't reach K2, K2 rejects the credentials, or some records can't be saved β the K2 tile in Settings β Integrations shows a warning. Open it to download an error file listing each failed record with its title, unique name, entity type and the reason. When a whole run fails, administrators also receive an e-mail notification β once, until a run succeeds again.

Error messages from K2 include the HTTP status code and the URL that was called. If the whole run fails, check first that the Webserver URL points to the REST service itself (for example β¦/restservice, without /Data or /Meta at the end), that it's reachable from the internet, and that the user name and password are still valid.