---
title: "Codeunit 131101 Library - Workflow"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/131101-library-workflow/
type: codeunit
id: 131101
name: "Library - Workflow"
app: "Application Test Library"
versions: "28-29"
build: 29.0.54011.55644
countries: "W1, DE, US"
source: "https://jonas-paprotka.de/ref/codeunit/131101-library-workflow/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/"
---

# Codeunit 131101 Library - Workflow

JOP-AL, https://jonas-paprotka.de/ref/codeunit/131101-library-workflow/

| | |
| --- | --- |
| App | Application Test Library |
| Versions | 28-29 |
| Minors | W1 28.0-29.0; DE 28.0-29.0; US 28.0-29.0, [every minor](https://jonas-paprotka.de/ref/codeunit/131101-library-workflow/editions.json) |
| Source file | LibraryWorkflow.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| CreateWorkflow | (var Workflow: Record Workflow) | - | public | 28-29 | - | - |
| CreateTemplateWorkflow | (var Workflow: Record Workflow) | - | public | 28-29 | - | - |
| CreateEnabledWorkflow | (var Workflow: Record Workflow; WorkflowCode: Code[17]) | - | public | 28-29 | - | - |
| CreateWorkflowTableRelation | (var WorkflowTableRelation: Record "Workflow - Table Relation"; TableId: Integer; FieldId: Integer; RelatedTableId: Integer; RelatedFieldId: Integer) | - | public | 28-29 | - | - |
| CreateWorkflowStepArgument | (var WorkflowStepArgument: Record "Workflow Step Argument"; Type: Option; UserID: Code[50]; TemplateName: Code[10]; BatchName: Code[10]; ApproverType: Enum "Workflow Approver Type"; InformUser: Boolean) | - | public | 28-29 | - | - |
| CreateNotificationSetup | (var NotificationSetup: Record "Notification Setup"; UserID: Code[50]; NotificationType: Enum "Notification Entry Type"; NotificationMethod: Enum "Notification Method Type") | - | public | 28-29 | - | - |
| SetNotifySenderInResponse | (WorkflowCode: Code[20]; StepID: Integer) | - | public | 28-29 | - | - |
| DeleteAllExistingWorkflows | () | - | public | 28-29 | - | - |
| DisableAllWorkflows | () | - | public | 28-29 | - | - |
| EnableWorkflow | (var Workflow: Record Workflow) | - | public | 28-29 | - | - |
| DeleteNotifications | () | - | public | 28-29 | - | - |
| GetGeneralJournalTemplateAndBatch | (var GeneralJnlTemplateCode: Code[10]; var GeneralJnlBatchCode: Code[10]) | - | public | 28-29 | - | - |
| InsertEntryPointEventStep | (Workflow: Record Workflow; ActivityName: Code[128]) | Integer | public | 28-29 | - | - |
| InsertEventStep | (Workflow: Record Workflow; ActivityName: Code[128]; PreviousStepID: Integer) | Integer | public | 28-29 | - | - |
| InsertResponseStep | (Workflow: Record Workflow; ActivityName: Code[128]; PreviousStepID: Integer) | Integer | public | 28-29 | - | - |
| InsertSubWorkflowStep | (Workflow: Record Workflow; WorkflowCode: Code[20]; PreviousStepID: Integer) | Integer | public | 28-29 | - | - |
| SetSequenceNo | (Workflow: Record Workflow; WorkflowStepID: Integer; SequenceNo: Integer) | - | public | 28-29 | - | - |
| SetNextStep | (Workflow: Record Workflow; WorkflowStepID: Integer; NextStepID: Integer) | - | public | 28-29 | - | - |
| SetEventStepAsEntryPoint | (Workflow: Record Workflow; WorkflowStepID: Integer) | - | public | 28-29 | - | - |
| SetSubWorkflowStepAsEntryPoint | (Workflow: Record Workflow; WorkflowStepID: Integer) | - | public | 28-29 | - | - |
| FindWorkflowStepForCreateApprovalRequests | (var WorkflowStep: Record "Workflow Step"; WorkflowCode: Code[20]) | - | public | 28-29 | - | - |
| UpdateWorkflowStepArgumentWithDirectApproverLimitType | (Argument: Guid) | - | public | 28-29 | - | - |
| UpdateWorkflowStepArgumentApproverLimitType | (Argument: Guid; ApproverType: Enum "Workflow Approver Type"; ApproverLimitType: Enum "Workflow Approver Limit Type"; WorkflowUserGroupCode: Code[20]; ApproverUserID: Code[50]) | - | public | 28-29 | - | - |
| SetWorkflowDirectApprover | (WorkflowCode: Code[20]) | - | public | 28-29 | - | - |
| SetWorkflowSpecificApprover | (WorkflowCode: Code[20]; ApproverID: Code[50]) | - | public | 28-29 | - | - |
| SetWorkflowGroupApprover | (WorkflowCode: Code[20]; GroupCode: Code[20]) | - | public | 28-29 | - | - |
| SetWorkflowChainApprover | (WorkflowCode: Code[20]) | - | public | 28-29 | - | - |
| InsertTableRelation | (TableId: Integer; FieldId: Integer; RelatedTableId: Integer; RelatedFieldId: Integer) | - | public | 28-29 | - | - |
| InsertEventArgument | (WorkflowStepID: Integer; EventConditions: Text) | - | public | 28-29 | - | - |
| InsertNotificationArgument | (WorkflowStepID: Integer; NotifUserID: Code[50]; LinkTargetPage: Integer; CustomLink: Text[250]) | - | public | 28-29 | - | - |
| InsertMessageArgument | (WorkflowStepID: Integer; Msg: Text[250]) | - | public | 28-29 | - | - |
| InsertPmtLineCreationArgument | (WorkflowStepID: Integer; GenJnlTemplateName: Code[10]; GenJnlBatchName: Code[10]) | - | public | 28-29 | - | - |
| InsertApprovalArgument | (WorkflowStepID: Integer; ApproverType: Enum "Workflow Approver Type"; ApproverLimitType: Enum "Workflow Approver Limit Type"; WorkflowUserGroupCode: Text[20]; InformUser: Boolean) | - | public | 28-29 | - | - |
| InsertRecChangeValueArgument | (WorkflowStepID: Integer; TableNo: Integer; FieldNo: Integer) | - | public | 28-29 | - | - |
| InsertEventRule | (WorkflowStepId: Integer; FieldNo: Integer; Operator: Option) | - | public | 28-29 | - | - |
| CreateDynamicRequestPageEntity | (Name: Code[20]; TableID: Integer; RelatedTableID: Integer) | Code[20] | public | 28-29 | - | - |
| CreateDynamicRequestPageField | (TableID: Integer; FieldID: Integer) | - | public | 28-29 | - | - |
| DeleteDynamicRequestPageFields | (TableID: Integer) | - | public | 28-29 | - | - |
| CopyWorkflow | (var Workflow: Record Workflow; FromWorkflowCode: Code[20]) | - | public | 28-29 | - | - |
| CopyWorkflowTemplate | (var Workflow: Record Workflow; FromWorkflowTemplateCode: Code[17]) | - | public | 28-29 | - | - |
| CreatePredecessor | (Type: Option; FunctionName: Code[128]; PredecessorType: Option; PredecessorFunctionName: Code[128]) | - | public | 28-29 | - | - |
| CreateEventPredecessor | (FunctionName: Code[128]; PredecessorFunctionName: Code[128]) | - | public | 28-29 | - | - |
| CreateResponsePredecessor | (FunctionName: Code[128]; PredecessorFunctionName: Code[128]) | - | public | 28-29 | - | - |
| CreateWorkflowCategory | () | Code[20] | public | 28-29 | - | - |

## Source

Symbols: Microsoft.ApplicationTestLibrary.symbols.d852d5d2-a39d-4179-baeb-f99a19e32510, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-11-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
