code change · performanceFinanceofficial - Microsoftreviewed - checked by Opus

#12186 Set several fields in one ModifyAll call

Consecutive ModifyAll calls on the same filtered record are merged into a single call that sets several fields, cutting SQL round trips. Where RunTrigger was passed, OnModify now runs once per row with all fields already set instead of once per field.

Pull request · merged into main (BC30) on 2026-10-19 by jehelles · 309 files (+430 -942), 131 AL · performance · tier official · reviewed (checked by Opus)

What changed

  • Back-to-back ModifyAll calls on the same record are merged into one call
  • Field and value expressions are unchanged and keep their order
  • With RunTrigger, OnModify runs once per row instead of once per field; three such cases are outside test code
  • One run is left unmerged because its calls disagreed on RunTrigger
  • Touches about 300 files across W1 apps, localization layers and demo data
  • Behaviour changes for users or extensions.

AL objects touched

Context

  • Work items: AB#652505
  • Labels: AL: Apps (W1), AL: System Application, AL: Tools, Ownership: Needs Review, Team: Other
  • Systems: finance, sales, integration, development, purchasing, service, inventory, projects, administration, fixed-assets, manufacturing, sustainability, crm, platform
  • From the description: “Every place that called ModifyAll repeatedly on the same record with nothing in between now makes a single call.”

No source states these links: they share an object, a model read them, or a person found the same subject.

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