code change · featureAL Developmentofficial - Microsoftreviewed - checked by Opus

#8771 Add OnBeforeFilterRemovedSourceRecords integration event in Email Impl

Adds an OnBeforeFilterRemovedSourceRecords integration event with an IsHandled guard, published via the Email codeunit and raised in Email Impl's FilterRemovedSourceRecords. Partners can override the default permission-based filtering, for example to handle users with security filters on source tables.

Pull request · merged into main (BC30) on 2026-07-20 by Groenbech96 (community contribution) · 2 files (+12 -0), 2 AL · feature · tier official · reviewed (checked by Opus)

What changed

  • New OnBefore event with IsHandled is raised at the start of FilterRemovedSourceRecords
  • Lets subscribers replace the unfiltered ReadPermission check, for example by setting SecurityFiltering to Ignored
  • Default filtering is unchanged when no subscriber sets IsHandled
  • Follows the existing event pattern in the Email codeunit’s Events region
  • Gives partners a way to address missing attachments in Add file from source document for security-filtered users

AL objects touched

Context

  • Work items: AB#642092
  • Labels: ADO: Sync, AL: System Application, From Fork, Team: Integrations
  • Systems: development

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