> ## 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 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());
}
```
