---
id: change/bcapps/9053
type: change
title: "#9053 [ALAppExtensions #30245][W1][Report][1701][Deferral Summary - Sales] Add integration event OnBeforeReturnSalesDocTypeString in ReturnSalesDocTypeString Procedure"
summary: An integration event was added to the ReturnSalesDocTypeString procedure in report 1701 so that extensions can override the document type text shown in the Deferral Summary - Sales report.
tier: official
language: en
tags:
  - feature
  - main
  - bc30
  - report deferral summary - sales
system: finance
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:13:21.437Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: ed4e2747a87d293d4bbf13a1a29929382ca614e4
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/9053
    title: "microsoft/BCApps#9053: [ALAppExtensions #30245][W1][Report][1701][Deferral Summary - Sales] Add integration event OnBeforeReturnSalesDocTypeString in ReturnSalesDocTypeString Procedure"
    date: "2026-07-09"
    commit: ed4e2747a87d293d4bbf13a1a29929382ca614e4
    t: null
    quote: Adds an IsHandled-style event to `ReturnSalesDocTypeString` so extensions can replace the document type text the report shows.
links:
  learn: []
  objects:
    - object/report/1701
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 9053
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/9053
kind: pr
base_branch: main
major: "30"
merged_at: "2026-07-09T15:51:57Z"
author: Explorer986
author_type: User
community_contribution: false
labels:
  - "Team: Finance"
change_class: code
change_kind: feature
behavior_change: false
breaking: false
files:
  count: 1
  additions: 19
  deletions: 0
  al: 1
apps:
  - Base Application
objects_touched:
  - key: report/1701
    page: report/1701
    type: report
    id: 1701
    name: Deferral Summary - Sales
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 639936
systems:
  - finance
quote: Adds an IsHandled-style event to `ReturnSalesDocTypeString` so extensions can replace the document type text the report shows.
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #9053 [ALAppExtensions #30245][W1][Report][1701][Deferral Summary - Sales] Add integration event OnBeforeReturnSalesDocTypeString in ReturnSalesDocTypeString Procedure

> An integration event was added to the ReturnSalesDocTypeString procedure in report 1701 so that extensions can override the document type text shown in the Deferral Summary - Sales report.

[Pull request](https://github.com/microsoft/BCApps/pull/9053) · merged into `main` (BC30) on 2026-07-09 by Explorer986 · 1 file (+19 -0), 1 AL · feature · tier official · reviewed (checked by Opus)

## What changed

- New IsHandled-style integration event added to ReturnSalesDocTypeString in report 1701
- Subscribers can replace the hardcoded document type text the report shows
- Procedure now uses a named return value so the event can set the result
- Default output unchanged when no subscriber handles the event

## AL objects touched

- [Report 1701 "Deferral Summary - Sales"](../../objects/report/1701.md), Base Application: modified

## Context

- Work items: AB#639936
- Labels: Team: Finance
- Systems: finance
- From the description: "Adds an IsHandled-style event to `ReturnSalesDocTypeString` so extensions can replace the document type text the report shows."

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