> For the complete documentation index, see [llms.txt](https://support.emarketeer.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.emarketeer.com/docs/docs_se/integrationer/superoffice/superoffice-contact-matching.md).

# Så matchas kontakter mellan eMarketeer och SuperOffice

Hur eMarketeer kopplar sina kontakter till SuperOffice via External ID, när External ID sätts, och hur importer, automationer och Journeys hittar kontakten.

Den här artikeln förklarar hur eMarketeer kopplar en kontakt till samma person i SuperOffice, och hur varje del av integrationen hittar rätt kontakt.

eMarketeer och SuperOffice har separata databaser. Kopplingen mellan dem sparas på kontakten i eMarketeer.

## External ID

Kopplingen är ett kontaktfält som heter **External ID**. Med SuperOffice innehåller det personens **Contact ID** i SuperOffice. Fältet är inte specifikt för SuperOffice: med Microsoft Dynamics 365 innehåller det till exempel kontakt-ID:t i Dynamics.

{% hint style="info" %}
SuperOffice använder två liknande ID:n. **Contact ID** identifierar personen (`person_id` i SuperOffice-databasen), och **Company ID** identifierar företaget (`contact_id`). eMarketeer sparar alltid personens Contact ID.
{% endhint %}

Du kan inte redigera External ID på en enskild kontakt. För att sätta eller uppdatera det [importerar du kontakterna från SuperOffice](/docs/docs_se/integrationer/superoffice/import-contacts-from-superoffice-crm.md). Importen matchar på e-postadress och sparar varje kontakts Contact ID som External ID.

Du kan också sätta External ID med en [import från Excel](/docs/docs_se/guider/contacts-lists/import-contacts-from-excel.md) genom att mappa en kolumn till **External ID**, men import från SuperOffice är det rekommenderade sättet. Om du använder Excel, se till att kolumnen innehåller personens Contact ID och inte Company ID.

## När External ID sätts

En kontakt utan External ID matchas på e-postadress. När en matchning hittas sparas Contact ID i SuperOffice som External ID. Det sker på följande ställen:

* **Import från SuperOffice** — Importen uppdaterar varje kontakt i eMarketeer med matchande e-postadress, inklusive External ID. Om flera kontakter har samma e-postadress får de alla identiska uppgifter, inklusive samma External ID.
* **Share to CRM** — När du delar en kontakt skapas den i SuperOffice, eller matchas mot en befintlig kontakt på e-postadress. Contact ID sparas sedan som External ID.
* **Lead Board** — När en kontakt blir en MQL söker eMarketeer i SuperOffice på e-postadress, använder den första träffen och sparar dess Contact ID som External ID. Se [Lead Board för SuperOffice](/docs/docs_se/integrationer/superoffice/lead-board-and-superoffice.md).
* **Journeys** — SuperOffice-stegen i en Journey matchar kontakten på e-postadress, eller skapar den i SuperOffice om du tillåter det, och sparar Contact ID som External ID.
* **Import från Excel** — En kolumn som mappas till **External ID**, som beskrivs ovan.

## Så hittar varje arbetsflöde kontakten i SuperOffice

### SuperOffice-automatiseringar

[SuperOffice-automatiseringar](/docs/docs_se/integrationer/superoffice/superoffice-automations-pro.md) i en kampanj behöver External ID. Utan det pausas automatiseringen och kontakten läggs i Manage Automations Queue tills kontakten har matchats eller delats till SuperOffice. Om External ID inte matchar någon kontakt i SuperOffice misslyckas automatiseringen. Se [Varför misslyckades SuperOffice-automatiseringen?](/docs/docs_se/integrationer/superoffice/integration-queue-failed-automations.md).

### Journey-steg

Stegen i gruppen **CRM** i panelen **Add Journey step** använder först External ID. Om kontakten inte har något letar eMarketeer efter kontakten i SuperOffice på e-postadress. Om ingen matchande kontakt hittas hoppas Journey-steget över som standard. Se [SuperOffice Journey Steps](/docs/docs_se/integrationer/superoffice/superoffice-journey-steps.md).

## Skapa saknade kontakter i SuperOffice

<div align="left" data-with-frame="true"><img src="https://2555292243-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FicfGEyRadiE4k7sV4O4o%2Fuploads%2Fgit-blob-0750beca4a369999599e0ab7a712eb4b1bee9c66%2Fcreating-your-first-journey-superoffice-settings-panel.png?alt=media" alt="Panelen SuperOffice settings med alternativen Create the contacts / company och Skip contacts we can&#x27;t find in SO"></div>

När du lägger till ett Journey-steg som involverar SuperOffice visas en inställningspanel i det vänstra sidofältet.

Som standard hoppas kontakter som inte hittas i SuperOffice över. Du kan också konfigurera steget så att det automatiskt skapar de saknade kontakterna i SuperOffice.

För att skapa kontakterna i SuperOffice måste du också ange en ansvarig säljare och en kategori för de nya kontakterna och företagen.

När kontakter och företag skapas automatiskt försöker eMarketeer hitta ett befintligt företag som passar den nya kontakten, eller skapar kontakten utan företag om det är tillåtet.

Inställningen för att skapa kontakter gäller alla SuperOffice-steg i din Journey.

<details>

<summary>Logik för kontaktmatchning</summary>

```mermaid
flowchart TD
    A[Does contact have external-id?] -->|Yes| G[Create action]
    A -->|No| B[Does contact exist in SO by email?]
    B -->|Yes| G
    B -->|No| C["Search for company in SO\n1. Email domain\n2. Company name"]
    C -->|found| F[Create contact]
    C -->|not found| D[Do we have company name?]
    D -->|Yes| E["Create company\n(company name, or domain name if empty)"]
    D -->|No| H[Can we create orphan contacts?]
    H -->|Yes| F
    H -->|No| E
    E --> F
    F --> G
```

</details>

{% hint style="info" %}
När du aktiverar automatiskt skapande av kontakter är det bra praxis att även lägga till de nya kontakterna i ett urval i SuperOffice. På så sätt hittar du dem enkelt senare.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://support.emarketeer.com/docs/docs_se/integrationer/superoffice/superoffice-contact-matching.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
