> ## 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.

# Persons

> How to work with persons in CRMScript.

## Customer (class)

The **Customer** CRMScript class represents the following entities:

* Real-life: a customer (person) that may or may not work for a company or organization
* SuperOffice UI: contact
* Database table: person

<Note>
  All [associates][1] (internal employees) have a corresponding person record.

  The `associate` table is an MDO list item table and has therefore not a corresponding CRMScript class.
</Note>

### String makeSalutation()

`makeSalutation()` creates a greeting appropriate for the customer. The string can be used at the beginning of a document or email.

```crmscript! theme={null}
Customer c;
c.load(3);
printLine(c.makeSalutation());
```

## User (class)

The **User** CRMScript class represents the following entities:

* Real-life: a user account
* SuperOffice UI: user
* Database table: ejuser

<Note>
  To get from a user object to a customer or company object, you must go via the **associate** table.
</Note>

## Parser variables

Calling `toParser()` will load fields, prefix them based on the class, and make them available to [templates][2].

<Note>
  Repeated calls will overwrite rather than append the values in the Parser instance.
</Note>

```crmscript! theme={null}
Parser p;
Customer c;
c.load(4);
c.toParser(p);
printLine(p.getVariable("customer.name", 0));

User u;
u.load(2);
u.toParser(p);
printLine(p.getVariable("user.username", 0));
```

Here, prefixes are *customer* and *user* respectively.

[1]: ../../../../contact/dev/index#associate

[2]: ../request/reply-templates


## Related topics

- [Person](/en/api/archive-providers/reference/person.md)
- [person](/en/api/mdo-providers/reference/person.md)
- [Persons](/en/api/reference/restful/rest/contact/persons.md)
- [person_freetextsearch](/en/api/mdo-providers/reference/person_freetextsearch.md)
- [Person löschen](/de/contact/learn/delete.md)
