---
url: /flow/guide/scripting-reference/classes/partner/partner.customerid.md
---

# Partner.CustomerId

## Declaration

`property CustomerId: String;`

### Example

```pascal
procedure OnMapEvent(var Value:Variant);
begin
  Value := Partner.CustomerId;
end;
```

## Description

Returns the Customer Id of the active partner within your system. Only available if [Partner.PartnerType](/flow/guide/scripting-reference/classes/partner/partner.partnertype) is `fptCustomer` otherwise this will return blank string.
