---
id: change/bcapps/14738
type: change
title: "#14738 [Main][All-E] Vendor Bank Account Approval Workflow: Approve/Reject/Delegate events cannot be re-added after deletion"
summary: Fixed a bug where the Approve, Reject, and Delegate events in Vendor Bank Account Approval Workflow could not be re-added after deletion by establishing missing predecessor relationships in the workflow event library.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit upgrade tag definitions
  - codeunit upgrade workflow
  - codeunit workflow event handling
system: platform
review:
  state: reviewed
  by: opus
  at: "2026-12-05T01:02:43.170Z"
  flags: []
generated:
  at: "2026-12-06T00:14:19.053Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 01795c99cc25b8d1d1a942939ff6859761f4228a
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/14738
    title: "microsoft/BCApps#14738: [Main][All-E] Vendor Bank Account Approval Workflow: Approve/Reject/Delegate events cannot be re-added after deletion"
    date: "2026-12-04"
    commit: 01795c99cc25b8d1d1a942939ff6859761f4228a
    t: null
    quote: The workflow event library is missing predecessor relationships linking these three events to Approval of a vendor bank account is requested.
links:
  learn: []
  objects:
    - object/codeunit/9998
    - object/codeunit/104056
    - object/codeunit/1520
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/devenv-walkthrough-workflow-events-responses
      title: "Walkthrough: Implementing New Workflow Events and Responses"
      label: possibly related
      why: touches Codeunit 1520 "Workflow Event Handling"
      by: code
    - to: https://learn.microsoft.com/dynamics365/business-central/across-how-to-delete-workflows
      title: How to delete approval workflows
      label: possibly related
      why: Documents deleting approval workflows; this change fixes re-adding workflow events after deletion.
      by: model
number: 14738
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/14738
kind: pr
base_branch: main
major: "30"
merged_at: "2026-12-04T05:19:20Z"
author: sanjmaurya
author_type: User
community_contribution: false
labels:
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 7
  additions: 159
  deletions: 0
  al: 6
apps:
  - Base Application
objects_touched:
  - key: codeunit/9998
    page: codeunit/9998
    type: codeunit
    id: 9998
    name: Upgrade Tag Definitions
    app: Base Application
    status: modified
  - key: codeunit/104056
    page: codeunit/104056
    type: codeunit
    id: 104056
    name: Upgrade Workflow
    app: Base Application
    status: modified
  - key: codeunit/1520
    page: codeunit/1520
    type: codeunit
    id: 1520
    name: Workflow Event Handling
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 661394
systems:
  - platform
  - development
quote: The workflow event library is missing predecessor relationships linking these three events to Approval of a vendor bank account is requested.
joined_against:
  major: "30"
  commit: f53bb0f1ecd89fde9f133f9dcaf5bf43cf5f2671
---

# #14738 [Main][All-E] Vendor Bank Account Approval Workflow: Approve/Reject/Delegate events cannot be re-added after deletion

> Fixed a bug where the Approve, Reject, and Delegate events in Vendor Bank Account Approval Workflow could not be re-added after deletion by establishing missing predecessor relationships in the workflow event library.

[Pull request](https://github.com/microsoft/BCApps/pull/14738) · merged into `main` (BC30) on 2026-12-04 by sanjmaurya · 7 files (+159 -0), 6 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Added missing predecessor relationships linking Approve/Reject/Delegate events to the vendor bank account approval request event
- Included upgrade logic to populate these relationships for existing companies
- Added regression tests covering deletion and re-addition scenarios for all three events
- Workflow events can now be selected, saved, and retained after reload
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 9998 "Upgrade Tag Definitions"](../../objects/codeunit/9998.md), Base Application: modified
- [Codeunit 104056 "Upgrade Workflow"](../../objects/codeunit/104056.md), Base Application: modified
- [Codeunit 1520 "Workflow Event Handling"](../../objects/codeunit/1520.md), Base Application: modified

## Context

- Work items: AB#661394
- Labels: Team: Finance
- Systems: platform, development
- From the description: "The workflow event library is missing predecessor relationships linking these three events to Approval of a vendor bank account is requested."

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [Walkthrough: Implementing New Workflow Events and Responses](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/devenv-walkthrough-workflow-events-responses) — possibly related: touches Codeunit 1520 "Workflow Event Handling"
- [How to delete approval workflows](https://learn.microsoft.com/dynamics365/business-central/across-how-to-delete-workflows) — possibly related: Documents deleting approval workflows; this change fixes re-adding workflow events after deletion. (model-linked)

Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).
