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

# NSArchiveRestrictionGroup

> Carrier for restriction group. Contains all the search restrictions for the group - that is, ArchiveRestrictionInfo - objects, including info such as rank and name.

Carrier for restriction group. Contains all the search restrictions for the group - that is, ArchiveRestrictionInfo - objects, including info such as rank and name.

## Constructors

### NSArchiveRestrictionGroup()

```crmscript theme={null}
NSArchiveRestrictionGroup
```

Initializes a new instance of the NSArchiveRestrictionGroup class.

## Methods

## GetDescription()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Description of group.

**Example:**

```crmscript theme={null}
NSArchiveRestrictionGroup thing;
String description = thing.GetDescription();
```

## GetName()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The name of this criteria group.

**Example:**

```crmscript theme={null}
NSArchiveRestrictionGroup thing;
String name = thing.GetName();
```

## GetRank()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Rank order within this CriteriaModel.

**Example:**

```crmscript theme={null}
NSArchiveRestrictionGroup thing;
Integer rank = thing.GetRank();
```

## GetRestrictions()

```crmscript theme={null}
NSArchiveRestrictionInfo[] GetRestrictions()
```

**Returns:** [CRMScript.NetServer.NSArchiveRestrictionInfo](CRMScript.NetServer.NSArchiveRestrictionInfo)\[] - Array of NSArchiveRestrictionInfo restriction specifications.

**Example:**

```crmscript theme={null}
NSArchiveRestrictionGroup thing;
NSArchiveRestrictionInfo[] restrictions = thing.GetRestrictions();
```

## SetDescription(String)

```crmscript theme={null}
Void SetDescription(String description)
```

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

**Example:**

```crmscript theme={null}
NSArchiveRestrictionGroup thing;
String description;
thing.SetDescription(description);
```

## SetName(String)

```crmscript theme={null}
Void SetName(String name)
```

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

**Example:**

```crmscript theme={null}
NSArchiveRestrictionGroup thing;
String name;
thing.SetName(name);
```

## SetRank(Integer)

```crmscript theme={null}
Void SetRank(Integer rank)
```

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

**Example:**

```crmscript theme={null}
NSArchiveRestrictionGroup thing;
Integer rank;
thing.SetRank(rank);
```

## SetRestrictions(NSArchiveRestrictionInfo\[])

```crmscript theme={null}
Void SetRestrictions(NSArchiveRestrictionInfo[] restrictions)
```

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

**Example:**

```crmscript theme={null}
NSArchiveRestrictionGroup thing;
NSArchiveRestrictionInfo[] restrictions;
thing.SetRestrictions(restrictions);
```


## Related topics

- [NSFindAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSFindAgent.md)
- [NSSelectionAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSSelectionAgent.md)
- [NSWorkflowWaitForAction](/en/automation/crmscript/reference/CRMScript.NetServer.NSWorkflowWaitForAction.md)
- [NSCriteriaInformation](/en/automation/crmscript/reference/CRMScript.NetServer.NSCriteriaInformation.md)
- [NSWorkflowTrigger](/en/automation/crmscript/reference/CRMScript.NetServer.NSWorkflowTrigger.md)
- [NSWorkflowGoal](/en/automation/crmscript/reference/CRMScript.NetServer.NSWorkflowGoal.md)
