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

# NSWorkflowStepOptionBase

> Carrier object for WorkflowStepOptionBase.

Carrier object for WorkflowStepOptionBase.

## Constructors

### NSWorkflowStepOptionBase()

```crmscript theme={null}
NSWorkflowStepOptionBase
```

Initializes a new instance of the NSWorkflowStepOptionBase class.

## Methods

## GetWorkflowStepOptionId()

Gets the primary key (ID) for the WorkflowStepOption.

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

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

## SetWorkflowStepOptionId(Integer)

Sets the primary key (ID) for the WorkflowStepOption.

```crmscript theme={null}
Void SetWorkflowStepOptionId(Integer workflowStepOptionId)
```

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

## GetWorkflowStepId()

Gets the workflow step this instance belongs to.

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

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

## SetWorkflowStepId(Integer)

Sets the workflow step this instance belongs to.

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

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

## GetWorkflowId()

Gets the workflow id.

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

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

## SetWorkflowId(Integer)

Sets the workflow id.

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

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

## GetName()

Gets the name of this option.

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Option name.

## SetName(String)

Sets the name of this option.

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

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

## GetRank()

Gets the step order.

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Step order.

## SetRank(Integer)

Sets the step order.

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

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

## GetOptionType()

Gets the type of option.

```crmscript theme={null}
WorkflowSplitOptionType GetOptionType()
```

**Returns:** [CRMScript.NetServer.WorkflowSplitOptionType](CRMScript.NetServer.WorkflowSplitOptionType) - Option type.

## SetOptionType(WorkflowSplitOptionType)

Sets the type of option.

```crmscript theme={null}
Void SetOptionType(WorkflowSplitOptionType optionType)
```

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

## GetSteps()

Gets the steps to execute if this option/path is selected.

```crmscript theme={null}
NSWorkflowStepBase[] GetSteps()
```

**Returns:** [CRMScript.NetServer.NSWorkflowStepBase](CRMScript.NetServer.NSWorkflowStepBase)\[] - Array of workflow steps.

## SetSteps(NSWorkflowStepBase\[])

Sets the steps to execute if this option/path is selected.

```crmscript theme={null}
Void SetSteps(NSWorkflowStepBase[] steps)
```

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


## Related topics

- [NSWorkflowAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSWorkflowAgent.md)
- [Get Workflow Step Option](/en/api/reference/restful/agent/workflow_agent/get-workflow-step-option.md)
- [SuperOffice.WebApi.Data.WorkflowStepOptionBase](/en/api/reference/webapi/SuperOffice.WebApi.Data.WorkflowStepOptionBase.md)
- [SuperOffice.WebApi.Data.WorkflowStepOptionFormData](/en/api/reference/webapi/SuperOffice.WebApi.Data.WorkflowStepOptionFormData.md)
- [SuperOffice.WebApi.Data.WorkflowStepOptionFormSubmission](/en/api/reference/webapi/SuperOffice.WebApi.Data.WorkflowStepOptionFormSubmission.md)
- [SuperOffice.WebApi.Data.WorkflowStepOptionLinkClicked](/en/api/reference/webapi/SuperOffice.WebApi.Data.WorkflowStepOptionLinkClicked.md)
