code change · featureSales & Receivablesofficial - Microsoftreviewed - checked by Opus

#9461 [Extensibility Request] issue 30335: add OnBeforeRecreateSalesLine IsHandled event

A new OnBeforeRecreateSalesLine integration event with IsHandled flag was added to the Sales Header table in all country layers, enabling extensions to skip the standard sales line recreation logic and provide custom implementations.

Pull request · merged into main (BC30) on 2026-07-24 by AleksandricMarko · 15 files (+240 -15), 15 AL · feature · tier official · reviewed (checked by Opus)

What changed

  • New OnBeforeRecreateSalesLine IsHandled integration event published in RecreateSalesLinesHandleSupplementTypes
  • Allows subscribers to bypass standard CreateSalesLine call and implement custom sales line creation
  • Change propagated across all country-specific layers (W1, NA, GB, BE, CH, CZ, ES, FI, FR, IT, NL, NO, RU, SE, APAC)
  • Enables conditional business logic based on extension fields without modifying core recreation flow
  • Addresses extensibility gap for complex sales line recreation scenarios

AL objects touched

  • Table 36 “Sales Header”, Base Application: modified
  • src/Layers/CZ/BaseApp/Sales/Document/SalesHeader.Table.al: modified, not in the BC30 snapshot
  • src/Layers/FI/BaseApp/Sales/Document/SalesHeader.Table.al: modified, not in the BC30 snapshot
  • src/Layers/GB/BaseApp/Sales/Document/SalesHeader.Table.al: modified, not in the BC30 snapshot

Context

  • Work items: AB#641988
  • Labels: Team: SCM, event-request
  • Systems: sales

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