# Import accounts and contacts

Bring companies and people in from Excel or CSV, update existing records in bulk, and check how each run went.

Source: https://support.rework.com/article/import-accounts-and-contacts

Moving from another CRM or a spreadsheet doesn't mean retyping every company and person. An import reads an Excel or CSV file, shows you exactly what it understood, and either creates new records or updates the ones you already have. Done in the right order, contacts land on the right companies and nothing gets added twice. Here's how to prepare the file and run the import.

> **Note:** Imports run into **one directory at a time**, because each directory has its own fields, stages and labels. You need to be able to manage the directory to see **Import**.

## Before you import

1. **Set up the directory first.** Every column you want to keep needs a field to land in. Create custom fields, stages, labels and segmentations before the import, not after. See [Set up an account directory](https://support.rework.com/article/set-up-an-account-directory) and [Set up a contact directory](https://support.rework.com/article/set-up-a-contact-directory).
   
2. **Decide the contact identifier.** A contact directory's identifier (email or phone) can't be changed later, and it's what the import checks for duplicates.
   
3. **Import accounts first, then contacts.** Contacts link to their company through the `account` or `account_id` column, and that company must already exist.
   

### Step 1: Open Import on the directory

- Open **Accounts** (or **Contacts**) and pick the directory in the switcher at the top of the menu, for example **Sales Accounts**.
  
- In the bar above the table, click **Import**.
  

**Export** sits right next to it and downloads the directory as a spreadsheet. **Import & export history** at the bottom of the menu lists every run.

![Accounts table bar with Export and Import, and the Import & export history link](https://storage.googleapis.com/reworkv3-public/success/260923/7MSDrqVP3oZkluRT4jFvBkQWlHMLVKBeP85iH41YuphScZ8YnYbXWIuOanYut5Pw/img.KsKkcKXAR9JnFrY7jz9xjzPKUjx5KoeCjIJiaFTHVusWrbPKDLFvHQkKd77QEB5H.png)

### Step 2: Choose Create new and get the template

The **Import accounts** dialog opens on **Import mode**.

- **Create new**: every row becomes a new record in this directory.
  
- **Skip rows whose domain already exists** (for contacts: **Skip duplicated contacts**): leave it ticked so a company or person already in Rework is skipped instead of added again.
  
- **Run in the background**: tick it to close the dialog while the import keeps going. Large files always run in the background.
  
- Click **Download template** to get a file whose columns match this directory, custom fields and segmentations included. **Columns** lists what each column means.
  

![Import dialog in Create new mode with the skip and background options and Download template](https://storage.googleapis.com/reworkv3-public/success/260923/uJTYl7Czbw8LiZveHTEYHKmOw0KcO57XAY5Om1JXKzi4PJNvZycGgpV8YkOeTKRo/img.RBYOAB3SRtgt0jOwZZbBggV2Mrffm8yN5jx9frU646kviJFygvjG9tsUgPQCTpDX.png)

### Step 3: Fill in the file

Keep the header row exactly as it is in the template. Column names are what the importer reads, and any column it doesn't recognize is ignored.

**What an account row needs**

| Column | Rule | Example |
| --- | --- | --- |
| `name` | Required when creating | Harborline Shipping |
| `domain` | Recommended: it's how duplicates are spotted | harborline.co |
| `value`, `currency` | Estimated lifetime value | 95000, USD |
| `stage` | A stage name that exists in the directory | Prospect |
| `owner` | Username, email or name of a Rework user | harry |
| `labels` | Label names, separated by `;` | Tier 2;Strategic |
| `Tier`, `Industry` | A segmentation option name, spelled exactly | Tier 2, Logistics |
| `Headquarters region` | A custom field of the directory | Rotterdam, NL |

**What a contact row needs**

| Column | Rule | Example |
| --- | --- | --- |
| `email` | The identifier in Sales Contacts, so required | lena.vos@harborline.co |
| `phone` | E.164 format, or country code and number | +31201234567 |
| `first_name`, `last_name` | You need a name or the identifier | Lena, Vos |
| `title` | Job title | Head of Procurement |
| `account` or `account_id` | The company by name or by exact id. The company must already exist. `account_id` wins when both are filled | Harborline Shipping |
| `owner`, `followers` | Username, email or name. Separate followers with `;` | hazel |
| `labels` | Label names, separated by `;` | Decision-maker |
| `Seniority`, `Department` | A segmentation option name | Director, Operations |

> **Warning:** Values that pick from a list (stages, labels, segmentation options) must match the name in Rework exactly, including capitals and spaces. _logistics_ doesn't match _Logistics_.

A few tips that save you a second import 💡

- Use one domain format across the file: `harborline.co`, not a mix with `https://www.harborline.co`.
  
- Remove duplicate emails (or phones) from a contact file before you upload it.
  
- Two companies can share a name. When linking contacts, prefer `account_id`, which you get by exporting the accounts you just imported.
  

### Step 4: Upload, review and import

- Click **Choose file...** and pick your `.xlsx`, `.xls` or `.csv` file.
  
- The dialog shows the file name, its row count and a preview of the rows exactly as Rework read them. Columns that aren't part of the template are flagged as ignored.
  
- Check the preview, then click **Import** followed by the number of rows, for example **Import 48**.
  

When the run finishes, the dialog shows a report: how many records were **Created** and **Updated**, which rows were **Skipped**, and each row that failed with its reason. A few failed rows? No problem: use **Show issues only** to fix just those rows, then import them again.

## Update records you already have

Use **Update existing** to change many records at once, for example to reassign owners after Harry's territory is split between him and Kevin.

- Export the directory first, so your file carries each record's id.
  
- Edit only the columns you want to change. Blank cells are left unchanged, so a file with just the id and `owner` columns only changes owners.
  
- In the Import dialog, choose **Update existing**, then pick how rows are matched under **Match rows by**.
  

![Import dialog in Update existing mode with Match rows by](https://storage.googleapis.com/reworkv3-public/success/260923/yy11uAtZAKGC6YI8Ngu7aHdf1UbSsNqOWmLRg1epACHOLsyNYS57bKhjP1XYbSHI/img.7g2nTNqXvMno7C7jVa0SkUjrjElaEsd4UxACjgLA8MmLNlCKhw2gOu17NKQs1Sjo.png)

| Match rows by | When to use it |
| --- | --- |
| **Account id** / **Contact id** | The default and the only exact match. Use a file that came out of an export |
| **Domain** | Accounts only. The closest thing to a unique key. Rows with no domain don't match |
| **Company name** | Accounts only. Convenient, but two companies can share a name and the first match wins |
| **Email** / **Phone** | Contacts only. Matches on a value someone typed |

A row that matches nothing is reported, never created.

## Check the import & export history

Click **Import & export history** at the bottom of the directory menu. Every import and export is listed with its **Status**, who ran it and when, and its **Result**. Filter by type, by person and by date, or click **Refresh**.

- **View details** opens a run: its **Rows**, **Records**, the options it used such as **Match rows by**, and the per-row results.
  
- For an export, **Download** gets the file. Exported files are kept for 7 days, then only the record of the run remains.
  

### What to do next

| What you want | Where to go |
| --- | --- |
| Merge records the import brought in twice | [Contact identification and deduplication](https://support.rework.com/article/contact-identification-and-deduplication) |
| Add a single record by hand | [Create an account](https://support.rework.com/article/create-an-account) or [Create a contact](https://support.rework.com/article/create-a-contact) |
| See the imported companies and people | [The account and contact pages](https://support.rework.com/article/the-account-and-contact-pages) |
