# Linking calls to records

How calls end up on the right contact, lead, account or deal — automatically when you dial from a record, and by phone-number matching for incoming and imported calls.

Source: https://support.rework.com/article/call-linking-calls-to-records

A call is most useful when it sits on the customer record it was about. Calls links calls to records in Sales and Lead in two ways: **from the record you dialed from**, and **by matching the phone number** for calls that arrive without one.

## Who can do this

- **Calls placed from a record:** linked automatically for everyone. Nothing to set up.
- **Phone-number matching:** turned on per call service by the service's managers (service owners, the service creator, app admins and the system owner).
- **Seeing the linked call:** the call appears on the record, but opening it still needs access to the call in Calls. See [Roles and permissions](https://support.rework.com/article/call-roles-and-permissions).

## Key concepts

| Term | Meaning |
| --- | --- |
| **Filed call** | A call that already knows its record, because it was placed from that record. |
| **Unfiled call** | A call that only knows a phone number — an incoming call, or a call imported from a provider's history. |
| **Source** | The main record a call is filed on. The call appears in that record's activity stream. |
| **Linked records** | Further records the call is attached to, for example the contact's account or open deals. |

## How calls get linked

### Calls you place from a record

When you call from the **Call** tab on a Sales or Lead record, the call is filed on that record from the moment you click **Call**. Its entry on the record updates as it rings, connects and ends, and when the recording and note arrive. A filed call is **never re-matched** by phone number later, so it can't move off the record you called from. See [Call from other Rework apps](https://support.rework.com/article/call-call-from-other-rework-apps).

### Incoming and imported calls

For an unfiled call, Calls looks the caller's number up in the apps you choose and files the call on what it finds. This happens in the background, usually within a few minutes of the call arriving.

Matching only runs when:

- the call belongs to a call service (inbound calls get one from the line's router; imported calls from the line's puller), and
- that service has matching turned on.

## Steps: turn on phone-number matching for a service

1. Go to **Settings → Services** and open the service.
2. In **General**, find **Automatically add source and linked objects**.
3. Under **Match unfiled calls to records**, tick **Match this line's unfiled calls**.
4. Under **Apps, in priority order**, add the apps to search:
   
   - **Sales** — matches a **Contact**. You can also file the call on the contact's **Account** and **Open deals**.
   - **Leads** — matches a **Lead**.Use the arrows to change the order. Untick the matched record type if you want to match on it but file only on the extra records (for example, match the contact but file only on its open deals).
5. Choose **When more than one app knows the number**:
   
   - **Stop at the first that answers** (default) — apps are asked top to bottom; the first that recognises the number wins and the rest aren't asked.
   - **File on every app that answers** — every app is asked and the call is filed on everything found.
6. Choose **When one app returns several records**:
   - **File on all of them** (default)
   - **File on the best match only**
   - **Skip — do not guess** — leave the call unmatched.
7. Set **Maximum records per call** (1–20, default 5). This counts the matched record plus anything added from it.
8. Save the section.

## How it works

- **Exact matches only.** A number matches a record only when the digits really match. Calls never files a call on a loose or partial match.
- **First match is the source.** The first record found becomes the call's source and shows the call in its **Activity Stream**. Other linked records show it in their **Collaboration/Insights** section.
- **One record per stream entry.** Each record the call is filed on gets its own activity entry.
- **"Stop at the first" also stops on too many matches.** If the first app finds several records and you chose **Skip — do not guess**, the call stays unmatched — Calls doesn't fall back to the next app, because the first app did recognise the number.
- **No match is fine.** Many incoming numbers don't belong to any record. The call just stays unfiled.
- **Outages are retried.** If an app can't be reached, Calls doesn't treat that as "no match" (which could file the call on the wrong record). It retries every few minutes, up to five times. If it keeps failing, check the service's matching settings.
- **Re-matching.** If a call is matched again and a record no longer applies, its entry is removed from that record's activity.

## Good to know

- Calls on a line **without a router** have no service, so they're never matched. See [Receive inbound calls](https://support.rework.com/article/call-receive-inbound-calls).
- For imported call history, the puller decides which service each call lands in. See [Import call history with pullers](https://support.rework.com/article/call-import-call-history-with-pullers).
- On the call page, the **Linked records** panel shows the caller's record when there is one. You can't add a link by hand there yet.
- Only people who can see the call in Calls can open it from a record, even though the entry is visible on the record.

## Related articles

- [Call from other Rework apps](https://support.rework.com/article/call-call-from-other-rework-apps)
- [Receive inbound calls](https://support.rework.com/article/call-receive-inbound-calls)
- [Create and configure a call service](https://support.rework.com/article/call-create-and-configure-a-call-service)
- [Import call history with pullers](https://support.rework.com/article/call-import-call-history-with-pullers)
- [Call details](https://support.rework.com/article/call-call-details)
