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

# NSWorkflowStepBase

> Carrier object for WorkflowStepBase.

Carrier object for WorkflowStepBase.

## Constructors

### NSWorkflowStepBase()

```crmscript theme={null}
NSWorkflowStepBase
```

Initializes a new instance of the NSWorkflowStepBase class.

## Methods

## GetWorkflowStepId()

Gets the primary key (ID) for the WorkflowStepBase.

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

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

## SetWorkflowStepId(Integer)

Sets the primary key (ID) for the WorkflowStepBase.

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

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

## GetWorkflowId()

Gets the ID of the workflow this step belongs to.

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

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

## SetWorkflowId(Integer)

Sets the ID of the workflow this step belongs to.

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

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

## GetStepType()

Gets the type of workflow step.

```crmscript theme={null}
NSWorkflowStepType GetStepType()
```

**Returns:** [CRMScript.NetServer.NSWorkflowStepType](CRMScript.NetServer.NSWorkflowStepType) - The step type.

## SetStepType(NSWorkflowStepType)

Sets the type of workflow step.

```crmscript theme={null}
Void SetStepType(NSWorkflowStepType stepType)
```

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

## GetRank()

Gets the order/rank of the step in the workflow.

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

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

## SetRank(Integer)

Sets the order/rank of the step in the workflow.

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

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


## Related topics

- [NSWorkflowStepOptionBase](/en/automation/crmscript/reference/CRMScript.NetServer.NSWorkflowStepOptionBase.md)
- [NSWorkflowAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSWorkflowAgent.md)
- [SuperOffice.WebApi.Data.WorkflowStepBase](/en/api/reference/webapi/SuperOffice.WebApi.Data.WorkflowStepBase.md)
- [SuperOffice.WebApi.Data.WorkflowStepOptionBase](/en/api/reference/webapi/SuperOffice.WebApi.Data.WorkflowStepOptionBase.md)
- [Add After Workflow Step](/en/api/reference/restful/agent/workflow_agent/add-after-workflow-step.md)
- [Get Workflow Step Option](/en/api/reference/restful/agent/workflow_agent/get-workflow-step-option.md)
