# Assign to existing owner

> Looks for a rep who already owns the company or the contact in HubSpot, and gives them the lead.

Exits: Owner (found), None (nobody owns it), Away (the owner is away).

| | |
|---|---|
| Type | `owner` |
| Group | Routing |

## Exits

| Exit | Name |
|---|---|
| `owner` | Owner |
| `none` | None |
| `away` | Away |

## Settings

| Key | Label | Takes | Default | Notes |
|---|---|---|---|---|
| `sources` | Where to look for an owner | `openDeal` The owner of the company's open deal, `companyOwner` The company's owner, `contactOwner` The contact's owner, `earlierLead` The rep an earlier lead from the company went to |  | Tried in this order. The first that gives an owner wins. None ticked: all four. |
| `windowDays` | An earlier lead counts for (days) | A number. | `90` |  |
| `awayKeepsOwner` | Keep the owner when they are away | true or false. |  | Off: the lead takes the Away exit. |

## Fields it adds

| Field | What |
|---|---|
| `flow.rep_name` | Rep's name |
| `flow.rep_owner` | Rep's HubSpot owner ID |
| `flow.ownerSource` | Where the owner came from |

## In a flow document

```json
{
  "id": "owner1",
  "type": "owner",
  "settings": {
    "windowDays": 90
  }
}
```
