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

# NSShipmentMessageBlockEntity

## Constructors

### NSShipmentMessageBlockEntity()

```crmscript theme={null}
NSShipmentMessageBlockEntity
```

Initializes a new instance of the NSShipmentMessageBlockEntity class.

## Methods

## GetAssociateId()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - The associate that owns this block.

**Example:**

```crmscript theme={null}
NSShipmentMessageBlockEntity thing;
Integer associateId = thing.GetAssociateId();
```

## GetBlock()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The block definition. Normally this will be a JSON structure.

**Example:**

```crmscript theme={null}
NSShipmentMessageBlockEntity thing;
String block = thing.GetBlock();
```

## GetRegistered()

```crmscript theme={null}
DateTime GetRegistered()
```

**Returns:** [CRMScript.Global.DateTime](CRMScript.Global.DateTime) - Registered when.

**Example:**

```crmscript theme={null}
NSShipmentMessageBlockEntity thing;
DateTime registered = thing.GetRegistered();
```

## GetRegisteredAssociateId()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Registered by whom.

**Example:**

```crmscript theme={null}
NSShipmentMessageBlockEntity thing;
Integer registeredAssociateId = thing.GetRegisteredAssociateId();
```

## GetShipmentMessageBlockId()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Primary key.

**Example:**

```crmscript theme={null}
NSShipmentMessageBlockEntity thing;
Integer shipmentMessageBlockId = thing.GetShipmentMessageBlockId();
```

## GetUpdated()

```crmscript theme={null}
DateTime GetUpdated()
```

**Returns:** [CRMScript.Global.DateTime](CRMScript.Global.DateTime) - Last updated when.

**Example:**

```crmscript theme={null}
NSShipmentMessageBlockEntity thing;
DateTime updated = thing.GetUpdated();
```

## GetUpdatedAssociateId()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Last updated by whom.

**Example:**

```crmscript theme={null}
NSShipmentMessageBlockEntity thing;
Integer updatedAssociateId = thing.GetUpdatedAssociateId();
```

## GetUpdatedCount()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Number of updates made to this record.

**Example:**

```crmscript theme={null}
NSShipmentMessageBlockEntity thing;
Integer updatedCount = thing.GetUpdatedCount();
```

## SetAssociateId(Integer)

```crmscript theme={null}
Void SetAssociateId(Integer associateId)
```

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

**Example:**

```crmscript theme={null}
NSShipmentMessageBlockEntity thing;
Integer associateId;
thing.SetAssociateId(associateId);
```

## SetBlock(String)

```crmscript theme={null}
Void SetBlock(String block)
```

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

**Example:**

```crmscript theme={null}
NSShipmentMessageBlockEntity thing;
String block;
thing.SetBlock(block);
```

## SetRegistered(DateTime)

```crmscript theme={null}
Void SetRegistered(DateTime registered)
```

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

**Example:**

```crmscript theme={null}
NSShipmentMessageBlockEntity thing;
DateTime registered;
thing.SetRegistered(registered);
```

## SetRegisteredAssociateId(Integer)

```crmscript theme={null}
Void SetRegisteredAssociateId(Integer registeredAssociateId)
```

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

**Example:**

```crmscript theme={null}
NSShipmentMessageBlockEntity thing;
Integer registeredAssociateId;
thing.SetRegisteredAssociateId(registeredAssociateId);
```

## SetShipmentMessageBlockId(Integer)

```crmscript theme={null}
Void SetShipmentMessageBlockId(Integer shipmentMessageBlockId)
```

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

**Example:**

```crmscript theme={null}
NSShipmentMessageBlockEntity thing;
Integer shipmentMessageBlockId;
thing.SetShipmentMessageBlockId(shipmentMessageBlockId);
```

## SetUpdated(DateTime)

```crmscript theme={null}
Void SetUpdated(DateTime updated)
```

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

**Example:**

```crmscript theme={null}
NSShipmentMessageBlockEntity thing;
DateTime updated;
thing.SetUpdated(updated);
```

## SetUpdatedAssociateId(Integer)

```crmscript theme={null}
Void SetUpdatedAssociateId(Integer updatedAssociateId)
```

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

**Example:**

```crmscript theme={null}
NSShipmentMessageBlockEntity thing;
Integer updatedAssociateId;
thing.SetUpdatedAssociateId(updatedAssociateId);
```

## SetUpdatedCount(Integer)

```crmscript theme={null}
Void SetUpdatedCount(Integer updatedCount)
```

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

**Example:**

```crmscript theme={null}
NSShipmentMessageBlockEntity thing;
Integer updatedCount;
thing.SetUpdatedCount(updatedCount);
```


## Related topics

- [NSMarketingAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSMarketingAgent.md)
- [Delete Shipment Message Block Entity](/en/api/reference/restful/rest/shipmentmessageblock/delete-shipment-message-block-entity.md)
- [Get Shipment Message Block Entity](/en/api/reference/restful/rest/shipmentmessageblock/get-shipment-message-block-entity.md)
- [Post Shipment Message Block Entity](/en/api/reference/restful/rest/shipmentmessageblock/post-shipment-message-block-entity.md)
- [Default Shipment Message Block Entity](/en/api/reference/restful/rest/shipmentmessageblock/default-shipment-message-block-entity.md)
- [Put Shipment Message Block Entity](/en/api/reference/restful/rest/shipmentmessageblock/put-shipment-message-block-entity.md)
