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

# NSWorkflowWaitForAction

> Carrier object for WorkflowWaitForAction.

Carrier object for WorkflowWaitForAction.

## Constructors

### NSWorkflowWaitForAction()

```crmscript theme={null}
NSWorkflowWaitForAction
```

Initializes a new instance of the NSWorkflowWaitForAction class.

## Methods

## GetWorkflowWaitForActionId()

Gets the primary key (ID) for the WorkflowWaitForAction.

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - WorkflowWaitForAction Id.

## SetWorkflowWaitForActionId(Integer)

Sets the primary key (ID) for the WorkflowWaitForAction.

```crmscript theme={null}
Void SetWorkflowWaitForActionId(Integer workflowWaitForActionId)
```

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

## GetWorkflowStepId()

Gets the ID of the workflow step this instance belongs to.

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Workflow step ID.

## SetWorkflowStepId(Integer)

Sets the ID of the workflow step this instance belongs to.

```crmscript theme={null}
Void SetWorkflowStepId(Integer workflowStepId)
```

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

## GetWorkflowId()

Gets the ID of the workflow this action is part of.

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Workflow ID.

## SetWorkflowId(Integer)

Sets the ID of the workflow this action is part of.

```crmscript theme={null}
Void SetWorkflowId(Integer workflowId)
```

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

## GetRank()

Gets the rank of the action in the workflow.

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Action rank.

## SetRank(Integer)

Sets the rank of the action in the workflow.

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

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

## GetActionType()

Gets the type of the action.

```crmscript theme={null}
NSWorkflowWaitForActionType GetActionType()
```

**Returns:** [CRMScript.NetServer.NSWorkflowWaitForActionType](CRMScript.NetServer.NSWorkflowWaitForActionType) - Action type.

## SetActionType(NSWorkflowWaitForActionType)

Sets the type of the action.

```crmscript theme={null}
Void SetActionType(NSWorkflowWaitForActionType actionType)
```

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

## GetRestrictionGroups()

Gets the restriction groups for the action.

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

**Returns:** [CRMScript.NetServer.NSArchiveRestrictionGroup](CRMScript.NetServer.NSArchiveRestrictionGroup) - Restriction groups.

## SetRestrictionGroups(NSArchiveRestrictionGroup\[])

Sets the restriction groups for the action.

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

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


## Related topics

- [NSWorkflowAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSWorkflowAgent.md)
- [Delete Workflow Wait For Action](/en/api/reference/restful/agent/workflow_agent/delete-workflow-wait-for-action.md)
- [Save Workflow Wait For Action](/en/api/reference/restful/agent/workflow_agent/save-workflow-wait-for-action.md)
- [Get Workflow Wait For Action](/en/api/reference/restful/agent/workflow_agent/get-workflow-wait-for-action.md)
- [workflow_wait_for_action table](/en/database/tables/workflow-wait-for-action.md)
- [Create Default Workflow Wait For Action](/en/api/reference/restful/agent/workflow_agent/create-default-workflow-wait-for-action.md)
