---
id: object/table/1502
type: object
title: Table 1502 "Workflow Step"
summary: Table 1502 "Workflow Step" in Base Application (System.Automation). 10 fields, 19 public procedures, 1 events. Present since at least BC23, still in BC30, changed in BC24, BC27.
tier: official
language: en
tags:
  - table
  - base application
versions:
  introduced: null
  last_changed: "27"
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: d123a977f176ce8e03135f58804865ea6902869ac0aa87f92e689bc63a82c510
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/System/Workflow/WorkflowStep.Table.al
    title: src/Layers/W1/BaseApp/System/Workflow/WorkflowStep.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: table
object_id: 1502
name: Workflow Step
namespace: System.Automation
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
  - "27"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 10
  procedures: 27
  events: 1
  subscribers: 0
relations:
  out: 8
  referenced_by: 12
  pages: 1
  extended_by: 0
  event_subscribers: 0
  calls: 4
  called_by: 0
  implements: 0
---

# Table 1502 "Workflow Step"

> Table 1502 "Workflow Step" in Base Application (System.Automation). 10 fields, 19 public procedures, 1 events. Present since at least BC23, still in BC30, changed in BC24, BC27.

Base Application · System.Automation · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/System/Workflow/WorkflowStep.Table.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Caption | Workflow Step |
| DataClassification | CustomerContent |
| Permissions | tabledata "Workflow Step" = r, TableData "Workflow Step Instance" = rimd, TableData "Workflow Step Argument" = ri, TableData "Workflow Rule" = rimd |

## Fields

Explanation: the field's ToolTip in the code; without one, the ToolTip of a page control bound to the field (marked via the page); without that, its Caption (marked caption) when that differs from the name.

| No. | Name | Type | Explanation | Notes |
|---|---|---|---|---|
| 1 | ID | Integer | — | AutoIncrement |
| 2 | Workflow Code | Code[20] | — | TableRelation [Table 1501 "Workflow"](../table/1501.md); NotBlank |
| 4 | Description | Text[100] | — |  |
| 9 | Entry Point | Boolean | — |  |
| 11 | Previous Workflow Step ID | Integer | — | TableRelation [Table 1502 "Workflow Step"](../table/1502.md) ("Workflow Step".ID where("Workflow Code" = field("Workflow Code"))) |
| 12 | Next Workflow Step ID | Integer | — | TableRelation [Table 1502 "Workflow Step"](../table/1502.md) ("Workflow Step".ID where("Workflow Code" = field("Workflow Code"))) |
| 13 | Type | Option | — | OptionCaption: Event,Response,Sub-Workflow |
| 14 | Function Name | Code[128] | — | TableRelation [Table 1501 "Workflow"](../table/1501.md), [Table 1520 "Workflow Event"](../table/1520.md), [Table 1521 "Workflow Response"](../table/1521.md) (if (Type = const(Event)) "Workflow Event" else if (Type = const(Response)) "Workflow Response" else if (Type = const("Sub-Workflow")) Workflow) |
| 15 | Argument | Guid | — | TableRelation [Table 1523 "Workflow Step Argument"](../table/1523.md) ("Workflow Step Argument" where(Type = field(Type))) |
| 16 | Sequence No. | Integer | — |  |

## Keys

- Key1: Workflow Code, ID (clustered)
- Key2: Sequence No.
- Key3: Function Name, Type
- Key4: Entry Point, Previous Workflow Step ID

## Events published

- `OnBeforeCreateInstance(WorkflowCode: Code[20])` (integration)

## Procedures

- `CreateInstance(WorkflowInstanceID: Guid; WorkflowCode: Code[20]; PreviousWorkflowStepID: Integer; SubWorkflowStep: Record "Workflow Step")`
- `ConvertEventConditionsToFilters(RecRef: RecordRef)`
- `DeleteEventConditions()`
- `OpenEventConditions()`
- `OpenAdvancedEventConditions()`
- `CompareEventConditions(WorkflowStep: Record "Workflow Step"): Boolean`
- `CompareEventRule(WorkflowStep: Record "Workflow Step"): Boolean`
- `InsertAfterStep(var NewWorkflowStep: Record "Workflow Step")`
- `LookupOtherWorkflowStepID(var LookupID: Integer): Boolean`
- `GetDescription(): Text[250]`
- `ToString(): Text`
- `FindByAttributes(WorkflowStepAttributes: Text)`
- `GetConditionAsDisplayText(): Text`
- `GetRuleAsDisplayText(): Text`
- `HasEventsInSubtree(var ChildWorkflowStep: Record "Workflow Step"): Boolean`
- `FindWorkflowRules(var WorkflowRule: Record "Workflow Rule"): Boolean`
- `HasWorkflowRules(): Boolean`
- `SetFilters(var WorkflowRule: Record "Workflow Rule")`
- `HasParentEvent(var WorkflowStep: Record "Workflow Step"): Boolean`

Plus 7 local procedures.

## Triggers

OnDelete, OnInsert, OnModify, OnRename

## Relations

- lookup page [Page 1503 "Workflow Steps"](../page/1503.md)
- Function Name: TableRelation [Table 1501 "Workflow"](../table/1501.md) (conditional)
- Workflow Code: TableRelation [Table 1501 "Workflow"](../table/1501.md)
- Next Workflow Step ID: TableRelation [Table 1502 "Workflow Step"](../table/1502.md)
- Previous Workflow Step ID: TableRelation [Table 1502 "Workflow Step"](../table/1502.md)
- Function Name: TableRelation [Table 1520 "Workflow Event"](../table/1520.md) (conditional)
- Function Name: TableRelation [Table 1521 "Workflow Response"](../table/1521.md) (conditional)
- Argument: TableRelation [Table 1523 "Workflow Step Argument"](../table/1523.md)

## Referenced by

12 fields in 5 objects relate to this table (TableRelation or CalcFormula).

- [Table 1504 "Workflow Step Instance"](../table/1504.md): Original Workflow Code, Original Workflow Step ID, Workflow Code, Workflow Step ID
- [Table 1507 "Workflow Step Buffer"](../table/1507.md): Event Step ID, Parent Event Step ID, Previous Workflow Step ID, Response Step ID
- [Table 1502 "Workflow Step"](../table/1502.md): Next Workflow Step ID, Previous Workflow Step ID
- [Table 1523 "Workflow Step Argument"](../table/1523.md): Type
- [Table 1524 "Workflow Rule"](../table/1524.md): Workflow Step ID

## Pages and codeunits on this table

- [Page 2147 "APIV2 - Workflow Steps"](../page/2147.md) (source table)

## Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 1521 "Workflow Response Handling"](../codeunit/1521.md) (1 call: `GetDescription → GetDescription`)
- [Codeunit 1530 "Request Page Parameters Helper"](../codeunit/1530.md) (1 call: `ConvertEventConditionsToFilters → ConvertParametersToFilters`)
- [Codeunit 4100 "Temp Blob"](../codeunit/4100.md) (1 call: `ConvertEventConditionsToFilters → FromRecord`)
- [Page 1503 "Workflow Steps"](../page/1503.md) (1 call: `LookupOtherWorkflowStepID → (object)`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24, BC27

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "table", object_name: "Workflow Step")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
