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


## Related topics

- [NSTicketInfo](/en/automation/crmscript/reference/CRMScript.NetServer.NSTicketInfo.md)
- [Get Attachment Info](/en/api/reference/restful/rest/ticketmessage/get-attachment-info.md)
- [Get Ticket Attachments](/en/api/reference/restful/rest/ticket/get-ticket-attachments.md)
- [Get Custom Field Info](/en/api/reference/restful/rest/ticketmessage/get-custom-field-info.md)
