# Import and export deals

Bring deals in from a spreadsheet, download a pipeline to edit or report on, and follow every run on the Import & export history page.

Source: https://support.rework.com/article/import-and-export-deals

Moving to Rework from another CRM, or need to change a few hundred deals at once? A spreadsheet is the fastest way to do it. **Export** downloads a pipeline's deals as an Excel or CSV file, exactly as a saved view shows them if you like. **Import** creates new deals from a file, or updates existing ones from a file you exported and edited. Every run is recorded, so you can always check what happened afterwards. Here's how it all works.

## Step 1: Find Export and Import

Open the pipeline and click **Deals**.

1. **Export** sits on the sub-bar above the table.
   
2. **Import** is right next to it. It's shown to pipeline owners and app admins only.
   
3. **Import & export history**, at the bottom of the pipeline's menu, lists every run.
   

![Export and Import on the Deals sub-bar, and Import & export history in the pipeline menu](https://storage.googleapis.com/reworkv3-public/success/260923/EV61Wf8KfiQIEfyrVCk5tOimjpu80Ej3cAHUK6R2LVJYjKtMNuRXrNPqLGlE39uh/img.9w6XnUedYjVUu74VZdwKfgTtnAAJl08bsqYaCNGUs2gePBAebwywpg86Sp9zXZcv.png)

## Step 2: Export deals

Click **Export**. The **Export deals** dialog asks you three things:

- **Records to include**:
  
  - Under **Everything**: **Open deals**, **Closed deals (won + lost)** or **Every deal in this pipeline**.
    
  - Under **Saved views**: any view on this pipeline. The file then matches what that view shows, with its filters and its sort. See [The deals table and views](https://support.rework.com/article/the-deals-table-and-views).
    
- **Columns**: every column is picked to start with. Click a column to leave it out. The label is the exact header the file will carry, which is also the header an import reads back. A puzzle icon marks the pipeline's custom fields.
  
- **File format**: **Excel (.xlsx)** keeps the columns typed, while **CSV (.csv)** opens anywhere.
  

Click **Export**. A small file downloads straight away. A large one is prepared in the background: the dialog shows its progress, and you're free to close it and pick up the file from the history page later. Tick **Prepare in the background** if you'd like a small file handled that way too.

> **Note:** An admin can turn on **Prevent exporting deals** for a pipeline. Pipeline owners, app admins and system owners can still export, plus anyone on the rule's exception list. See [Pipeline rules and additional settings](https://support.rework.com/article/pipeline-rules-and-additional-settings).

## Step 3: Prepare the import file

Click **Import**. The **Import deals** dialog opens on **Create new**.

1. **Import mode**: **Create new** adds new deals. **Update existing** changes deals that are already in the pipeline (see Step 5 below).
   
2. **Run in the background**: large files always run in the background. Tick it to run a small one that way too, so you can close the dialog while it works.
   
3. The dialog's own reminder: _A sheet cannot win or lose a deal_. Closing a deal asks for a reason and the pipeline's own required fields, the same as the **Won** and **Lost** buttons.
   
4. **Download template** gives you a file with the right headers for this pipeline. **Choose file…** uploads yours.
   

![Import deals on Create new, with Run in the background, the reminder, Download template and Choose file](https://storage.googleapis.com/reworkv3-public/success/260923/X9rPCdwWOG0fjIRmIJa0vMcfkTkNEHBoib4G00kYHqaXMkVp4aQfLyIFJPHDX8Wn/img.GNdYEPe9gKyqtuZOuXw5reKPZIwL3W9vQDdoukRGlBwUK1TSHM1qse9vf9q5r5ru.png)

Before you fill in the template, open **Columns** in the dialog to see what each header means:

![The Columns list in Import deals, from name to overview](https://storage.googleapis.com/reworkv3-public/success/260923/7cgwybcjbwMiCn0gsa8zlKtTDbpqhqyTn0xwKE0zzteGCRS4eeypnevcSt4oXFbw/img.IoD6DNvZbwb8pUe34TlgF16qQ2W1DQQv5YYAXXxvdiflTwAzqMqxsP2Pr7b2eVhF.png)

| Column | What to put in it |
| --- | --- |
| `name` | The deal name. Required when creating. |
| `stage` | A stage name in this pipeline. Left blank, the deal lands on the first stage. |
| `value`, `currency` | The amount (digits only) and a currency code such as USD. |
| `account`, `contact` | An existing company by name, an existing person by email or name. They must already exist. `account_id` and `contact_id` match by exact id instead. |
| `owner`, `followers` | People by username, email or name. Separate several followers with `;`. |
| `labels` | Label names, separated by `;`. |
| `probability` | A whole percent, 0 to 100. |
| `expected_close` | A date, DD/MM/YYYY. |
| `status`, `closed_at`, `failed_reason`, `failed_comment` | Closing details: `active`, `won` or `lost`, the close date, a won or lost reason of this pipeline by name, and a note. A row that closes a deal runs the pipeline's close-time required fields, so a row missing one is refused. |
| Custom fields and segments | One column each, named after the field. |

Here's a small file for the **Expansion** pipeline:

| name | stage | value | account | contact | owner | labels |
| --- | --- | --- | --- | --- | --- | --- |
| Brightline Logistics – route optimiser | Trigger detected | 18000 | Brightline Logistics | sofia.ramirez@brightline.io | brian | High value |
| Cobalt Health Network – telehealth seats | Champion sourced | 26000 | Cobalt Health Network | Noah Bennett | brian |  |

## Step 4: Upload and run the import

- Click **Choose file…** and pick your `.xlsx` or `.csv` file.
  
- The dialog shows the file's name, size and row count, plus a preview of the first rows as Rework read them.
  
- Any header that isn't part of the template is named in a yellow notice and ignored. Give it a quick check for typos before you go on.
  
- Click **Import** followed by the row count, for example **Import 2**.
  

A small file is applied at once, and the dialog shows a report: how many deals were created, updated and skipped, and for each failed row, its row number and the reason. A large file runs in the background with a progress bar, and the same report appears when it finishes.

> **Note:** Imported deals always go into the pipeline you opened the dialog from. An import never moves a deal between pipelines. To bring deals into another pipeline, open **Import** from that pipeline.

## Step 5: Update existing deals

Use this to change many deals at once, for example to reassign owners or correct values after a review.

1. Click **Update existing**. Deals are matched by id only, because deal names repeat too often to match on safely.
   
2. Each row needs the deal's id. Export the pipeline first, edit the file, then import it back.
   

![Import deals on Update existing, with the id-only matching note](https://storage.googleapis.com/reworkv3-public/success/260923/MRtyHSYkxjkJspHegqIvpV3bmr66LBI9tRCfmpB3Rst6HG7QOWfkfxupNOkl4JMu/img.BUpN8KRGZJsgBocAInMizLRm0uyCyJItKyBF3F9bTn9us5RMRq6CWDH9CGdkoWLW.png)

- The update template adds an `id` column as the last column. An export already carries it, so you don't need to add it yourself.
  
- A row whose `id` isn't a deal in this pipeline, or is a deal you don't manage, fails and is listed in the report.
  

## Step 6: Check the Import & export history

Click **Import & export history** in the pipeline's menu. The page lists every deal import and export in the workspace, newest first, across all pipelines.

Narrow the list at the top right with **All types** / **Exports only** / **Imports only**, **Anyone** / **Only mine**, **Last 7 days** to **Any time**, and **Newest first** / **Oldest first**. **Refresh** reloads it. While a run is in progress, the list updates itself.

| Column | What it shows |
| --- | --- |
| **Job** | **Import** or **Export**, with the file name or pipeline. The icon shows the status: queued, running, finished or failed. |
| **Result** | An export's row count and file size. An import's created, updated, skipped and failed counts. A running job shows its progress, a failed one its error. |
| **Run by** | Who ran it and when. |
| **⋯** | **Download** (the file this export produced), **Rebuild file**, **Run again** (exports only) and **View details**. |

**View details** opens **Export details** or **Import details**: the status (**Queued**, **Running**, **Finished** or **Failed**), who ran it, when it started and finished, the row count and file size, the pipeline, the records or saved view and columns an export used, the format, and the **Import mode**. For an import, it also lists each row that didn't apply, with the reason.

> **Note:** Exported files are kept for 7 days, then only the record of the run remains. After that, **Rebuild file** creates the file again from the run's settings, which means it contains **today's** data, not the data at the time of the original export.

## What to do next

| What you want | Where to go |
| --- | --- |
| Change a handful of deals without a file | [Bulk actions on deals](https://support.rework.com/article/bulk-actions-on-deals) |
| Clean up deals an import created twice | [Merge duplicate deals](https://support.rework.com/article/merge-duplicate-deals) |
| Save a view to export exactly those deals | [The deals table and views](https://support.rework.com/article/the-deals-table-and-views) |

That's it! You're ready to move deals in and out in bulk ✅
