---
id: change/bcapps/9601
type: change
title: "#9601 Reset workflow templates no longer removes steps from active workflows"
summary: Reset workflow templates no longer removes steps from active workflows. The fix prevents data loss by scoping step deletion to template workflows only, not derived workflows sharing the same code prefix, and adds confirmation dialog for safety.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit workflow setup
  - page workflow templates
system: development
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:11:15.454Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: dd0ad0dd74776b3e7f439eb7240725be447837c8
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/9601
    title: "microsoft/BCApps#9601: Reset workflow templates no longer removes steps from active workflows"
    date: "2026-07-27"
    commit: dd0ad0dd74776b3e7f439eb7240725be447837c8
    t: null
    quote: Running Reset Microsoft Templates on the Workflow Templates page could wipe the steps out of active workflows, not just the templates.
links:
  learn: []
  objects:
    - object/codeunit/1502
    - object/page/1505
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 9601
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/9601
kind: pr
base_branch: main
major: "30"
merged_at: "2026-07-27T22:47:32Z"
author: darjoo
author_type: User
community_contribution: false
labels:
  - "Team: Integrations"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 3
  additions: 124
  deletions: 10
  al: 2
apps:
  - Base Application
objects_touched:
  - key: codeunit/1502
    page: codeunit/1502
    type: codeunit
    id: 1502
    name: Workflow Setup
    app: Base Application
    status: modified
  - key: page/1505
    page: page/1505
    type: page
    id: 1505
    name: Workflow Templates
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 640937
systems:
  - development
quote: Running Reset Microsoft Templates on the Workflow Templates page could wipe the steps out of active workflows, not just the templates.
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #9601 Reset workflow templates no longer removes steps from active workflows

> Reset workflow templates no longer removes steps from active workflows. The fix prevents data loss by scoping step deletion to template workflows only, not derived workflows sharing the same code prefix, and adds confirmation dialog for safety.

[Pull request](https://github.com/microsoft/BCApps/pull/9601) · merged into `main` (BC30) on 2026-07-27 by darjoo · 3 files (+124 -10), 2 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Prevents accidental deletion of steps in active workflows created from templates when resetting templates
- Root cause was overly broad filter that matched derived workflows by code prefix instead of exact template code
- Fix iterates template workflows and deletes steps only for exact template codes
- Adds confirmation dialog to Reset Microsoft Templates action for user safety
- Two regression tests added to prevent recurrence
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 1502 "Workflow Setup"](../../objects/codeunit/1502.md), Base Application: modified
- [Page 1505 "Workflow Templates"](../../objects/page/1505.md), Base Application: modified

## Context

- Work items: AB#640937
- Labels: Team: Integrations
- Systems: development
- From the description: "Running Reset Microsoft Templates on the Workflow Templates page could wipe the steps out of active workflows, not just the templates."

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