#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.
- 3files
- 2AL files
- 2objects
Pull request · 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”, Base Application: modified
- Page 1505 “Workflow Templates”, 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).