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

> How to load and get info about a request message with CRMScript.

## Bool load(Integer id)

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

```crmscript theme={null}
Message m;
m.load(1);
```

## String getValue(String colName)

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

```crmscript! theme={null}
Message m;
m.load(2);
print(m.getValue("timeCharge").toString());
```

## Integer\[] getAttachments()

Fetches the ID of all attachments connected to the message.

```crmscript! theme={null}
Message m;
m.load(2);
Integer[] attachments = m.getAttachments();
while(attachments.length() > 0) {
  printLine(attachments.popFront());
}
```


## Related topics

- [Get Email Message Ids](/en/api/reference/restful/agent/email_agent/get-email-message-ids.md)
- [Get Attachment Info](/en/api/reference/restful/rest/ticketmessage/get-attachment-info.md)
- [Get Default Message Content Full](/en/api/reference/restful/agent/ticket_agent/get-default-message-content-full.md)
- [Get Default Message Content With Options](/en/api/reference/restful/agent/ticket_agent/get-default-message-content-with-options.md)
- [Get Ticket Message Entities](/en/api/reference/restful/agent/ticket_agent/get-ticket-message-entities.md)
- [Get Custom Field Info](/en/api/reference/restful/rest/ticketmessage/get-custom-field-info.md)
