---
id: change/bcapps/11580
type: change
title: "#11580 [Extensibility Request] issue 29654: customize document rejection response"
summary: Workflow Setup now offers an overloaded method to define custom rejection responses for document approvals while maintaining backward compatibility with existing behavior.
tier: official
language: en
tags:
  - feature
  - main
  - bc30
  - codeunit workflow setup
system: development
review:
  state: reviewed
  by: opus
  at: "2026-10-16T01:17:10.624Z"
  flags: []
generated:
  at: "2026-10-24T01:02:25.817Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 562b520c7a3318282b94369ea0eedec9cbae4023
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/11580
    title: "microsoft/BCApps#11580: [Extensibility Request] issue 29654: customize document rejection response"
    date: "2026-10-13"
    commit: 562b520c7a3318282b94369ea0eedec9cbae4023
    t: null
    quote: Added an overload for supplying the rejection response code while retaining the existing signature and default behavior.
links:
  learn: []
  objects:
    - object/codeunit/1502
  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 1502 "Workflow Setup"
      by: code
    - to: https://learn.microsoft.com/dynamics365/business-central/across-how-to-create-workflows
      title: Create approval workflows to connect tasks
      label: possibly related
      why: Workflow events and responses for document rejection in approval workflows.
      by: model
number: 11580
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/11580
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-13T17:00:58Z"
author: AleksandricMarko
author_type: User
community_contribution: false
labels:
  - "Team: Integrations"
  - extensibility-enhancement
change_class: code
change_kind: feature
behavior_change: false
breaking: false
files:
  count: 1
  additions: 6
  deletions: 2
  al: 1
apps:
  - Base Application
objects_touched:
  - key: codeunit/1502
    page: codeunit/1502
    type: codeunit
    id: 1502
    name: Workflow Setup
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 620283
systems:
  - development
quote: Added an overload for supplying the rejection response code while retaining the existing signature and default behavior.
joined_against:
  major: "30"
  commit: f18567dc08e2bd162bf192e1da4d714b57eb099f
---

# #11580 [Extensibility Request] issue 29654: customize document rejection response

> Workflow Setup now offers an overloaded method to define custom rejection responses for document approvals while maintaining backward compatibility with existing behavior.

[Pull request](https://github.com/microsoft/BCApps/pull/11580) · merged into `main` (BC30) on 2026-10-13 by AleksandricMarko · 1 file (+6 -2), 1 AL · feature · tier official · reviewed (checked by Opus)

## What changed

- Adds overload to InsertDocApprovalWorkflowSteps accepting rejection response code
- Enables extensions to define custom rejection states
- Preserves default open document behavior for current callers
- Backward compatible extensibility enhancement

## AL objects touched

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

## Context

- Work items: AB#620283
- Labels: Team: Integrations, extensibility-enhancement
- Systems: development
- From the description: "Added an overload for supplying the rejection response code while retaining the existing signature and default behavior."

## 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 1502 "Workflow Setup"
- [Create approval workflows to connect tasks](https://learn.microsoft.com/dynamics365/business-central/across-how-to-create-workflows) — possibly related: Workflow events and responses for document rejection in approval workflows. (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).
