> ## Documentation Index
> Fetch the complete documentation index at: https://superofficeas-bugfix-ty-screen-designer-paradox.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Profile

> Methods for fetching info about a users profile.

Methods for fetching info about a users profile.

## Constructors

### Profile()

```crmscript theme={null}
Profile
```

Initializes a new instance of the Profile class.

## Methods

## getListTicketsFields(Integer)

Deprecated from version 7!

Returns an array containing information about a user's profile for the list-tickets tables as \<code>headerField, databaseField, chop, headerField, databaseField, chop, ...\</code>

```crmscript theme={null}
String[] getListTicketsFields(Integer user)
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String)\[] - Information about a user's profile for the list-tickets tables in a SearchEngine- and DataTable-friendly way.

**Example:**

```crmscript theme={null}
Map config = getScreenElementConfig(screenElementIndex);
Profile p;
String[] fields = p.getListTicketsFields(getVariable("activeUser").toInteger());
Integer c = 0;
for (Integer i = 0; i < (fields.length()* 2); i = i+3)
{
  config.insert("fields." + c.toString() + ".label", fields[i]);
  config.insert("fields." + c.toString() + ".field", fields[i+1]);
  config.insert("fields." + c.toString() + ".chop", fields[i+2]);
  if (fields[i+1] == "ticket.status" || fields[i+1] == "ticket.ticket_status")
  {
    config.insert("showTicketStatus", "true");
  }
  c++;
}
config.insert("fields.length", c.toString());
```
