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

# NSIncomingMessage

> Details about a message to be sent.

Details about a message to be sent.

## Constructors

### NSIncomingMessage()

```crmscript theme={null}
NSIncomingMessage
```

Initializes a new instance of the NSIncomingMessage class.

## Methods

## GetContent()

```crmscript theme={null}
String GetContent()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Content, or body, of the message.

**Example:**

```crmscript theme={null}
NSIncomingMessage thing;
String content = thing.GetContent();
```

## GetFormat()

```crmscript theme={null}
String GetFormat()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Format of the content.

**Example:**

```crmscript theme={null}
NSIncomingMessage thing;
String format = thing.GetFormat();
```

## GetFrom()

```crmscript theme={null}
String GetFrom()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Who the message is from.  This can vary from provider to provider and can for SMS typically be a phone number or a string.  This is mail address on the form of an e-mail.

**Example:**

```crmscript theme={null}
NSIncomingMessage thing;
String from = thing.GetFrom();
```

## GetPlugin()

```crmscript theme={null}
String GetPlugin()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Name of plugin.

**Example:**

```crmscript theme={null}
NSIncomingMessage thing;
String plugin = thing.GetPlugin();
```

## GetSessionKey()

```crmscript theme={null}
String GetSessionKey()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Session key used for threading.

**Example:**

```crmscript theme={null}
NSIncomingMessage thing;
String sessionKey = thing.GetSessionKey();
```

## GetTo()

```crmscript theme={null}
String GetTo()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Address of the recipient. This can be in the form of phone number or email.

**Example:**

```crmscript theme={null}
NSIncomingMessage thing;
String to = thing.GetTo();
```

## SetContent(String)

```crmscript theme={null}
Void SetContent(String content)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSIncomingMessage thing;
String content;
thing.SetContent(content);
```

## SetFormat(String)

```crmscript theme={null}
Void SetFormat(String format)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSIncomingMessage thing;
String format;
thing.SetFormat(format);
```

## SetFrom(String)

```crmscript theme={null}
Void SetFrom(String from)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSIncomingMessage thing;
String from;
thing.SetFrom(from);
```

## SetPlugin(String)

```crmscript theme={null}
Void SetPlugin(String plugin)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSIncomingMessage thing;
String plugin;
thing.SetPlugin(plugin);
```

## SetSessionKey(String)

```crmscript theme={null}
Void SetSessionKey(String sessionKey)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSIncomingMessage thing;
String sessionKey;
thing.SetSessionKey(sessionKey);
```

## SetTo(String)

```crmscript theme={null}
Void SetTo(String to)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSIncomingMessage thing;
String to;
thing.SetTo(to);
```


## Related topics

- [NSMessagingAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSMessagingAgent.md)
- [SuperOffice.WebApi.Data.IncomingMessage](/en/api/reference/webapi/SuperOffice.WebApi.Data.IncomingMessage.md)
- [SuperOffice.WebApi.Agents.IMessagingAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.IMessagingAgent.md)
- [SuperOffice.WebApi.Agents.MessagingAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.MessagingAgent.md)
- [Create Message](/en/api/reference/restful/agent/messaging_agent/create-message.md)
- [Archive email messages](/en/email/inbox/learn/archive.md)
