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

# NSWorkflowFilter

> Carrier object for WorkflowFilter.

Carrier object for WorkflowFilter.

## Constructors

### NSWorkflowFilter()

```crmscript theme={null}
NSWorkflowFilter
```

Initializes a new instance of the NSWorkflowFilter class.

## Methods

## GetRestrictionGroups()

Gets the restrictions (can be multiple groups) that make up the Workflow filter

```crmscript theme={null}
NSArchiveRestrictionGroup[] GetRestrictionGroups()
```

**Returns:** [CRMScript.NetServer.NSArchiveRestrictionGroup](CRMScript.NetServer.NSArchiveRestrictionGroup) - Get the restrictions

## SetRestrictionGroups(NSArchiveRestrictionGroup\[])

Sets the restrictions (can be multiple groups) that make up the Workflow filter

```crmscript theme={null}
Void SetRestrictionGroups(NSArchiveRestrictionGroup[] eventType)
```

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


## Related topics

- [NSWorkflowAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSWorkflowAgent.md)
- [NSEmailFlow](/en/automation/crmscript/reference/CRMScript.NetServer.NSEmailFlow.md)
- [Create Default Workflow Filter](/en/api/reference/restful/agent/workflow_agent/create-default-workflow-filter.md)
- [SuperOffice.WebApi.Data.WorkflowFilter](/en/api/reference/webapi/SuperOffice.WebApi.Data.WorkflowFilter.md)
- [SuperOffice.WebApi.Agents.WorkflowAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.WorkflowAgent.md)
- [SuperOffice.WebApi.Agents.IWorkflowAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.IWorkflowAgent.md)
