> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get customer info

> How to get customer info with CRMScript

## Bool load(Integer id)

Brings up the customer with the given ID. This is always the 1st step when you want to do anything with an existing customer.

```crmscript theme={null}
Customer c;
c.load(2);
```

## Bool loadFromAgentAndKey(Integer agent, String key)

Brings up the customer that is owned by the agent and matches the external key.

<Warning>
  `loadFromAgentAndKey()` might overwrite existing values!
</Warning>

## String getValue(String colName)

Fetches the value from a named field. Look up names in the reference section down below.

```crmscript! theme={null}
Customer c;
c.load(7);
print(c.getValue("firstname"));
```


## Related topics

- [Get user info](/en/automation/crmscript/howto/contact/get-user.md)
- [ExtraFieldsInfo](/en/automation/crmscript/reference/CRMScript.Native.ExtraFieldsInfo.md)
- [Get Faq For Customer](/en/api/reference/restful/agent/customerservice_agent/get-faq-for-customer.md)
- [Get Customer Language](/en/api/reference/restful/agent/list_agent/get-customer-language.md)
- [Get Customer Url](/en/api/reference/restful/agent/configuration_agent/get-customer-url.md)
- [NSCustomerServiceAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSCustomerServiceAgent.md)
