---
title: "GetCustomersBySalesPerson"
canonical: "https://docs.dk.is/space/DEV/10355033/GetCustomersBySalesPerson"
format: markdown
---
This function fetches array of [TCustomer](https://dkdocs.atlassian.net/wiki/spaces/DEV/pages/10355262) from the system that have a specific [TSalesPerson](https://dkdocs.atlassian.net/wiki/spaces/DEV/pages/10354891) assigned to them

## Parameters

Used to call the function

1. SalesPerson - string

## Returns

Returns the following

- Array of [TCustomer](https://dkdocs.atlassian.net/wiki/spaces/DEV/pages/10355262)

 

 

## Related articles



> Macro (contentbylabel)

> Macro (details)
> 
> | **Related issues** |  |
> | --- | --- |