---
title: "Table 1504 Workflow Step Instance, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/table/1504-workflow-step-instance/points/
object: https://jonas-paprotka.de/ref/table/1504-workflow-step-instance/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/table/1504-workflow-step-instance/source/
checked: 2026-11-20
changed: 2026-10-05
subject: "Microsoft Dynamics 365 Business Central"
license: "Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/"
---

# Table 1504 Workflow Step Instance, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/table/1504-workflow-step-instance/points/

9 procedures and triggers with a step in src/Layers/W1/BaseApp/System/Workflow/WorkflowStepInstance.Table.al, in source order, read from the text, not from a run.

## OnDelete

[Line 148](https://jonas-paprotka.de/ref/table/1504-workflow-step-instance/source/#L148), trigger.

- [155](https://jonas-paprotka.de/ref/table/1504-workflow-step-instance/source/#L155) writes [Table 1506 Workflow Table Relation Value](https://jonas-paprotka.de/ref/table/1506-workflow-table-relation-value/) DeleteAll
- [156](https://jonas-paprotka.de/ref/table/1504-workflow-step-instance/source/#L156) calls `DeleteStepInstanceRules`
- [157](https://jonas-paprotka.de/ref/table/1504-workflow-step-instance/source/#L157) calls `RemoveRecordRestrictions`

## MoveForward

[Line 176](https://jonas-paprotka.de/ref/table/1504-workflow-step-instance/source/#L176).

- [186](https://jonas-paprotka.de/ref/table/1504-workflow-step-instance/source/#L186) calls [Codeunit 1501 Workflow Management](https://jonas-paprotka.de/ref/codeunit/1501-workflow-management/) `UpdateStatus`
- [191](https://jonas-paprotka.de/ref/table/1504-workflow-step-instance/source/#L191) calls [Codeunit 1501 Workflow Management](https://jonas-paprotka.de/ref/codeunit/1501-workflow-management/) `UpdateStatus`
- [193](https://jonas-paprotka.de/ref/table/1504-workflow-step-instance/source/#L193) calls [Codeunit 1501 Workflow Management](https://jonas-paprotka.de/ref/codeunit/1501-workflow-management/) `UpdateStatus`
- [196](https://jonas-paprotka.de/ref/table/1504-workflow-step-instance/source/#L196) calls [Codeunit 1501 Workflow Management](https://jonas-paprotka.de/ref/codeunit/1501-workflow-management/) `UpdateStatus`
- [198](https://jonas-paprotka.de/ref/table/1504-workflow-step-instance/source/#L198) calls `TableRelationValuesExist`
- [199](https://jonas-paprotka.de/ref/table/1504-workflow-step-instance/source/#L199) calls `SetTableRelationValues`

## SetTableRelationValues

[Line 211](https://jonas-paprotka.de/ref/table/1504-workflow-step-instance/source/#L211).

- [226](https://jonas-paprotka.de/ref/table/1504-workflow-step-instance/source/#L226) calls [Table 1506 Workflow Table Relation Value](https://jonas-paprotka.de/ref/table/1506-workflow-table-relation-value/) `CreateNew`

## ArchiveActiveInstances

[Line 258](https://jonas-paprotka.de/ref/table/1504-workflow-step-instance/source/#L258).

- [269](https://jonas-paprotka.de/ref/table/1504-workflow-step-instance/source/#L269) writes [Table 1530 Workflow Step Instance Archive](https://jonas-paprotka.de/ref/table/1530-workflow-step-instance-archive/) Insert(true)
- [271](https://jonas-paprotka.de/ref/table/1504-workflow-step-instance/source/#L271) writes [Table 1504 Workflow Step Instance](https://jonas-paprotka.de/ref/table/1504-workflow-step-instance/) DeleteAll(true)

## DeleteStepInstanceRules

[Line 281](https://jonas-paprotka.de/ref/table/1504-workflow-step-instance/source/#L281), local.

- [285](https://jonas-paprotka.de/ref/table/1504-workflow-step-instance/source/#L285) calls `FindWorkflowRules`
- [286](https://jonas-paprotka.de/ref/table/1504-workflow-step-instance/source/#L286) writes [Table 1524 Workflow Rule](https://jonas-paprotka.de/ref/table/1524-workflow-rule/) DeleteAll

## RemoveRecordRestrictions

[Line 289](https://jonas-paprotka.de/ref/table/1504-workflow-step-instance/source/#L289), local.

- [309](https://jonas-paprotka.de/ref/table/1504-workflow-step-instance/source/#L309) calls [Codeunit 1550 Record Restriction Mgt.](https://jonas-paprotka.de/ref/codeunit/1550-record-restriction-mgt/) `AllowRecordUsage`

## BuildTempWorkflowTree

[Line 321](https://jonas-paprotka.de/ref/table/1504-workflow-step-instance/source/#L321).

- [328](https://jonas-paprotka.de/ref/table/1504-workflow-step-instance/source/#L328) calls `CreateTree`

## CreateTree

[Line 335](https://jonas-paprotka.de/ref/table/1504-workflow-step-instance/source/#L335), local.

- [340](https://jonas-paprotka.de/ref/table/1504-workflow-step-instance/source/#L340) calls `CreateNode`

## CreateNode

[Line 354](https://jonas-paprotka.de/ref/table/1504-workflow-step-instance/source/#L354), local.

- [369](https://jonas-paprotka.de/ref/table/1504-workflow-step-instance/source/#L369) writes [Table 1504 Workflow Step Instance](https://jonas-paprotka.de/ref/table/1504-workflow-step-instance/) Insert

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
