code change · featureService Managementofficial - Microsoftreviewed - checked by Opus

#9778 [Extensibility Request] issue 30362: add OnPostDocumentLinesOnBeforeInsertPostedHeaders event to Service-Post

A new integration event OnPostDocumentLinesOnBeforeInsertPostedHeaders enables extensions to control which posted service document is created during service posting, matching the extensibility available in Sales-Post.

Pull request · merged into main (BC30) on 2026-09-01 by AleksandricMarko · 3 files (+51 -24), 3 AL · feature · tier official · reviewed (checked by Opus)

What changed

  • New IsHandled integration event added to Service-Post codeunit
  • Raised in PostDocumentLines before posted service invoice or credit memo header creation
  • Allows extensions to replace the standard decision on which posted document type to create
  • Brings Service-Post extensibility feature parity with Sales-Post
  • Change propagated across W1, NA, and IT layers

AL objects touched

  • Codeunit 5980 “Service-Post”, Base Application: modified
  • src/Layers/NA/BaseApp/Service/Posting/ServicePost.Codeunit.al: modified, not in the BC30 snapshot

Context

  • Work items: AB#643301
  • Labels: Team: SCM, event-request
  • Systems: service

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