# Choose which customers a sales rep looks after

URL: https://docs.sparklayer.io/help/sales-reps/assign-customers
Applies to: Shopify

Assign customers, companies and sales rep groups to each sales rep in SparkLayer, and see who looks after each customer, and why, on every screen.

> **Quick summary**
>
> - The customers a sales rep **looks after** are the ones they can choose in **My Customers** on your store, order for and see in Pulse. Choose them on the rep's page: go to **Sales reps** in the SparkLayer Dashboard ([open](https://app.sparklayer.io/customers/agents)), or **SparkLayer Wholesale > Sales reps** in the Shopify app, click the rep and use **Companies and customers they look after**.
> - A rep looks after **Every B2B customer**, or **Only the companies and customers you choose**: companies (with all their locations, or only some), [sales rep groups](https://docs.sparklayer.io/help/sales-reps.md#create-sales-rep-groups) and individual customers you assign to them.
> - You can also start from the customer: **Assign customers** at **Companies > Customers** in the SparkLayer Dashboard ([open](https://app.sparklayer.io/customers/list)), or **SparkLayer Wholesale > Companies > Customers** in the Shopify app, the **+** on a customer's row, or the **Sales reps** card on their page. Each of these screens shows who looks after whom, and why.
> - On Shopify, on every plan with sales reps. On BigCommerce, limit reps with [sales rep groups](https://docs.sparklayer.io/help/sales-reps.md#restrict-which-customers-a-sales-agent-can-see).

This page is for you, the store owner or admin. To set up a rep in the first place, see [Add a sales rep](https://docs.sparklayer.io/help/sales-reps.md#make-someone-a-sales-agent).

## How it works

Every sales rep looks after a set of B2B customers. When they sign in to your store, those are the customers they can find in **My Customers** and order for, and the accounts, orders and quotes they see in [Pulse](https://docs.sparklayer.io/help/pulse.md). Change who a rep looks after, and they see the change the next time they sign in.

A rep looks after a customer in one of 4 ways. A customer's page names each rep and the reason:

| Shown on the customer's page | Why the rep looks after them |
| --- | --- |
| **Assigned** | You assigned the customer to the rep: on the rep's page, the customer's page, their row on **Customers** or with **Assign customers**. |
| **Through** a company, such as "Through Northwind Toys" | The rep looks after the customer's company, or the location they're in. |
| **Through** a group, such as "Through uk-reps" | The rep looks after a sales rep group the customer is in, directly or through their company or location. |
| **Sees every customer** | The rep is set to **Every B2B customer**. |

The ways add up. A customer can have several reps, and assigning a customer to a rep doesn't take them out of their sales rep groups. A rep looks after everyone they reach in any of the ways they're given.

Who a sales rep looks after:

1. **Choose on the rep's page**: Every B2B customer, or the companies, groups and customers you choose
2. **Or assign from a customer**: Add the rep on the customer's page or their row in Customers
3. **The rep sees them**: In My Customers on your store, and in Pulse

**More detail**

- SparkLayer gives each rep a sales rep group of their own, and assigning a customer or a company to the rep adds that group to them. On Shopify, it's saved in the customer's `sparklayer.sales_agent_groups` metafield, as `agent-` followed by an ID. SparkLayer shows the rep's name instead, wherever it appears.
- Because the assignment is saved in Shopify, a customer sync never undoes it. Don't edit or remove `agent-` values in Shopify: make every change in SparkLayer.
- Changing a rep's role to **Customer** removes their own group, so the customers and companies assigned to them go. If you make them a rep again, assign their customers again.

## Choose who a rep looks after

The rep's page is the one place to see and change everything a rep looks after.

1. Go to **Sales reps** in the SparkLayer Dashboard ([open](https://app.sparklayer.io/customers/agents)), or **SparkLayer Wholesale > Sales reps** in the Shopify app and click the rep's name.
2. On the **Companies and customers they look after** card, choose:
   - **Only the companies and customers you choose**: the rep sees just these when they sign in, and in Pulse.
   - **Every B2B customer**: the rep sees every B2B customer, including new companies and customers as they sign up.
3. With **Only the companies and customers you choose**, add what they look after:
   - **Companies**: click **Add companies**, search for a company and choose **All locations** (including new locations as you add them) or **Only some locations**, then tick the locations. Click **Done**.
   - **Sales rep groups**: tick the groups they look after. **Manage groups** opens **Sales reps > Sales rep groups** in the SparkLayer Dashboard ([open](https://app.sparklayer.io/customers/agent-groups)), or **SparkLayer Wholesale > Sales reps > Sales rep groups** in the Shopify app.
   - **Individual customers**: for customers outside those groups and companies, such as a key account the rep looks after personally, click **Add customers**, tick them and click **Done**.
4. Click **Save**.

Under the card, a total shows how many customers the rep looks after, for example "Cameron looks after 24 customers", and how many people are at the companies they look after. Click **View in Customers** to see the list, filtered to the rep.

**More detail**

- A company the rep looks after with **All locations** brings everyone at the company. With **Only some locations**, it brings the people in those locations, and in the locations inside them. To change the locations later, click **Edit** beside the company.
- When you add customers, those the rep already looks after through a group or a company are marked, for example "uk-reps: Cameron already looks after this group".
- Choosing **Every B2B customer** and saving takes the rep's companies, groups and individual customers off them.
- **Only the companies and customers you choose** needs at least one company, group or customer. With none, the rep would see every B2B customer, so SparkLayer doesn't save it and asks you to choose some, or choose **Every B2B customer**.

## Assign customers to a rep

To give one rep several customers at once:

1. Go to **Companies > Customers** in the SparkLayer Dashboard ([open](https://app.sparklayer.io/customers/list)), or **SparkLayer Wholesale > Companies > Customers** in the Shopify app or **Sales reps** in the SparkLayer Dashboard ([open](https://app.sparklayer.io/customers/agents)), or **SparkLayer Wholesale > Sales reps** in the Shopify app and click **Assign customers** at the top.
2. Under **Sales rep**, choose the rep.
3. Tick the customers to assign to them, and untick any to take off them.
4. Click **Save**.

If the rep is set to **Every B2B customer**, you'll see "Cameron sees every customer now": assigning customers here limits them to just the ones you tick. To give them companies or groups as well, use [the rep's page](#choose-on-the-reps-page).

## Assign reps to a customer

To choose the reps for one customer, start from the customer.

**From the customers list**

1. Go to **Companies > Customers** in the SparkLayer Dashboard ([open](https://app.sparklayer.io/customers/list)), or **SparkLayer Wholesale > Companies > Customers** in the Shopify app.
2. On the customer's row, click **+** in the **Sales reps** column.
3. Tick the sales reps who look after the customer, then click **Save**.

**From the customer's page**

1. Go to **Companies > Customers** in the SparkLayer Dashboard ([open](https://app.sparklayer.io/customers/list)), or **SparkLayer Wholesale > Companies > Customers** in the Shopify app and click the customer's name.
2. On the **Sales reps** card, click **Add sales rep**.
3. Tick the sales reps who look after the customer and click **Done**, then click **Save**.

To take a rep off the customer, click the **×** beside a rep marked **Assigned**, then **Save**.

**More detail**

- Reps who already look after the customer can't be ticked. They're marked "Already looks after uk-reps" (through a group) or "Already sees every customer".
- A rep who looks after the customer through a company, a group or **Every B2B customer** has **Edit** instead of **×**. You change those on the rep's page.
- On the same card, **Edit groups** changes the customer's sales rep groups. See [Create sales rep groups](https://docs.sparklayer.io/help/sales-reps.md#create-sales-rep-groups).
- Taking a rep's last customer away when they have no companies or groups leaves them with nothing chosen, so they see every B2B customer. Check the rep's page afterwards.

## See who looks after a customer

| Where | What it shows |
| --- | --- |
| A customer's page, **Sales reps** card | Each rep who looks after them, with **Assigned**, **Through** a company or group, or **Sees every customer**. With no reps, "No sales reps look after Priya Shah yet." |
| **Companies > Customers** in the SparkLayer Dashboard ([open](https://app.sparklayer.io/customers/list)), or **SparkLayer Wholesale > Companies > Customers** in the Shopify app, **Sales reps** column | The reps who look after each customer, or **Unassigned**. Reps set to **Every B2B customer** aren't listed, as they'd be on every row. |
| **Companies > Customers** in the SparkLayer Dashboard ([open](https://app.sparklayer.io/customers/list)), or **SparkLayer Wholesale > Companies > Customers** in the Shopify app, filters | **Sales rep** shows the customers a rep looks after. Choose **Unassigned** to find customers no rep has been given. **Sales rep group** shows the customers in a group. |
| A company's or location's page | Under **Sales reps who look after them**, **Also looked after by** names the reps given the company or location on their own page. You change these on the rep's page. |

## See who a rep looks after

| Where | What it shows |
| --- | --- |
| **Sales reps** in the SparkLayer Dashboard ([open](https://app.sparklayer.io/customers/agents)), or **SparkLayer Wholesale > Sales reps** in the Shopify app, **Looks after** column | How many customers each rep looks after, with their companies, groups and individual customers, for example "6 customers: Trade, Gift Shops, 1 individual customer". A rep set to **Every B2B customer** shows **Every customer**. |
| The rep's page | **Companies and customers they look after**, with the total and **View in Customers**. See [Choose who a rep looks after](#choose-on-the-reps-page). |

## On your store and in Pulse

What a rep looks after is the same everywhere they work:

- **My Customers**: when the rep signs in to your store, they can search for and order for the customers they look after, and no others. See [Order for a customer](https://docs.sparklayer.io/help/sales-ordering/order-for-a-customer.md).
- **Pulse**: their accounts, orders, quotes, carts and unpaid invoices are those of the customers they look after. See [Who can see what in Pulse](https://docs.sparklayer.io/help/pulse/access.md).
- **Sales admins** are limited the same way. A Sales admin who should see the whole team, including **Viewing as** any rep, needs **Every B2B customer**.

## Existing sales reps

Reps you set up before you could assign customers see the same customers as before:

- **A rep with no sales rep groups** sees every customer today, so they're set to **Every B2B customer**.
- **A rep with sales rep groups** is set to **Only the companies and customers you choose**, with the same groups ticked.

## FAQs

**Can a customer have more than one sales rep?**

Yes. Assign as many reps as you like, and the customer appears in each rep's **My Customers**. Only one person can change a customer's cart at a time: see [Cart locking](https://docs.sparklayer.io/help/sales-ordering/order-for-a-customer.md#cart-locking).

**Does assigning a customer replace their sales rep groups?**

No. Assigning adds the rep, and the customer keeps their groups and the reps who look after those groups.

**Why does a customer show Unassigned when a rep can order for them?**

**Unassigned** means no rep has been given the customer, their company or one of their groups. Reps set to **Every B2B customer** can still order for them, but they aren't listed in the column. Open the customer to see every rep, including those who see every customer.

**Can I assign customers on BigCommerce or another platform?**

Not yet: assigning customers is on Shopify. On BigCommerce, limit reps with sales rep groups: see [Restrict which customers a sales rep can see](https://docs.sparklayer.io/help/sales-reps.md#restrict-which-customers-a-sales-agent-can-see).

**I see agent- values in a customer's metafield in Shopify**

These are how SparkLayer saves the reps assigned to a customer. Leave them as they are, and assign or remove reps in SparkLayer. See [How it works](#how-it-works).

**A rep still sees a customer I took off them**

Check the customer's **Sales reps** card: the rep may still look after them through a company, a group or **Every B2B customer**. Change those on the rep's page. If it's right there, ask the rep to sign out of your store and back in.

## Next steps

- [Sales rep setup](https://docs.sparklayer.io/help/sales-reps.md): Add a sales rep, create sales rep groups and change a rep's role
- [Order for a customer](https://docs.sparklayer.io/help/sales-ordering/order-for-a-customer.md): How a rep picks a customer and orders on their behalf
- [Who can see what in Pulse](https://docs.sparklayer.io/help/pulse/access.md): What each rep and Sales admin sees in Pulse
