> ## Documentation Index
> Fetch the complete documentation index at: https://superofficeas-worktree-351-fix-webapi-escaped-anchors.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get ticket info

> How to load and get ticket info with CRMScript

## Bool load(Integer id)

Brings up the ticket with the given ID. This is always the first step when you want to do anything with an existing ticket.

```crmscript theme={null}
Ticket t;
t.load(1);
```

## String getValue(String colName)

Fetches the value from a named field. Look up names in the reference section down below, or check out the [class reference][3].

```crmscript! theme={null}
Ticket t;
t.load(2);
print(t.getValue("ticketStatus"));
```

[3]: /en/automation/crmscript/reference/CRMScript.Native.Ticket#getvaluestring
