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

# NSMessageDeliveryStatus

> Describes the message status.

Describes the message status.

## Constructors

### NSMessageDeliveryStatus()

```crmscript theme={null}
NSMessageDeliveryStatus
```

Initializes a new instance of the NSMessageDeliveryStatus class.

## Methods

## GetMessagingId()

```crmscript theme={null}
Integer GetMessagingId()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - ID to the outgoing message table.

**Example:**

```crmscript theme={null}
NSMessageDeliveryStatus thing;
Integer messagingId = thing.GetMessagingId();
```

## GetStatus()

```crmscript theme={null}
Integer GetStatus()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Current message status.

**Example:**

```crmscript theme={null}
NSMessageDeliveryStatus thing;
Integer status = thing.GetStatus();
```

## GetStatusDescription()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - String describing the current message status.

**Example:**

```crmscript theme={null}
NSMessageDeliveryStatus thing;
String statusDescription = thing.GetStatusDescription();
```

## SetMessagingId(Integer)

```crmscript theme={null}
Void SetMessagingId(Integer messagingId)
```

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

**Example:**

```crmscript theme={null}
NSMessageDeliveryStatus thing;
Integer messagingId;
thing.SetMessagingId(messagingId);
```

## SetStatus(Integer)

```crmscript theme={null}
Void SetStatus(Integer status)
```

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

**Example:**

```crmscript theme={null}
NSMessageDeliveryStatus thing;
Integer status;
thing.SetStatus(status);
```

## SetStatusDescription(String)

```crmscript theme={null}
Void SetStatusDescription(String statusDescription)
```

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

**Example:**

```crmscript theme={null}
NSMessageDeliveryStatus thing;
String statusDescription;
thing.SetStatusDescription(statusDescription);
```


## Related topics

- [NSMessagingAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSMessagingAgent.md)
- [SuperOffice.WebApi.Data.MessageDeliveryStatus](/en/api/reference/webapi/SuperOffice.WebApi.Data.MessageDeliveryStatus.md)
- [Set Delivery Status](/en/api/reference/restful/agent/messaging_agent/set-delivery-status.md)
- [Get Delivery Status](/en/api/reference/restful/agent/messaging_agent/get-delivery-status.md)
- [outgoing_message table](/en/database/tables/outgoing-message.md)
- [sms table](/en/database/tables/sms.md)
