#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.
- 309files
- 131AL files
- 79objects
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
- Codeunit 31302 “IntrastatReportManagementCZ”, IntrastatCZ (CZ layer): modified
- Table 10835 “Payment Header FR”, PaymentManagementFR (FR layer): modified
- Codeunit 18636 “FA Insert Led. Entry Sub.”, INFADepreciation (IN layer): modified
- Codeunit 18280 “GST Reconcilation Match”, INGST (IN layer): modified
- Page 18282 “GST Reconciliation”, INGST (IN layer): modified
- Codeunit 18469 “Subcontracting Subscribers”, INGST (IN layer): modified
- Table 10676 “SAF-T Mapping Range”, NorwegianSAFT (NO layer): modified
- Table 10050 “Transmission IRIS”, IRSForms (US layer): modified
- Codeunit 20116 “AMC Bank Install”, AMCBanking365Fundamentals: modified
- Table 5260 “G/L Account Mapping Header”, AuditFileExport: modified
- Codeunit 6196 “E-Doc. PO Matching”, EDocument: modified
- Codeunit 6164 “E-Doc. Line Matching”, EDocument: modified
- Codeunit 4014 “Notification Handler”, HybridBaseDeployment: modified
- Table 20241 “Tax Attribute”, INTaxEngine: modified
- Codeunit 7233 “Master Data Management”, MasterDataManagement: modified
- Table 20411 “Qlty. Inspection Result”, Quality Management: modified
- Codeunit 20511 “Subc. Synchronize Management”, Subcontracting: modified
- Codeunit 8060 “Create Billing Documents”, Subscription Billing: modified
- Codeunit 8066 “Purchase Documents”, Subscription Billing: modified
- Codeunit 8063 “Sales Documents”, Subscription Billing: modified
- Codeunit 8033 “Generic Connector Processing”, Subscription Billing: modified
- Codeunit 8026 “Process Usage Data Billing”, Subscription Billing: modified
- Codeunit 6225 “Sust. Purchase Subscriber”, Sustainability: modified
- Table 6291 “Emission Source Setup”, SustainabilityCopilotSuggestion: modified
- Table 81 “Gen. Journal Line”, Base Application: modified
- Codeunit 11601 “BAS Management”, Base Application (NZ layer): modified
- Report 11604 “BAS-Update”, Base Application (AU layer): modified
- Report 11603 “Calculate GST Settlement”, Base Application (AU layer): modified
- Codeunit 1313 “Correct Posted Purch. Invoice”, Base Application: modified
- Codeunit 1303 “Correct Posted Sales Invoice”, Base Application: modified
- Codeunit 80 “Sales-Post”, Base Application: modified
- Report 20 “Calc. and Post VAT Settlement”, Base Application: modified
- Codeunit 11601 “BAS Management”, Base Application (AU layer): modified
- Report 2000004 “Payment Journal Post”, Base Application (BE layer): modified
- Codeunit 426 “Payment Tolerance Management”, Base Application: modified
- Codeunit 10752 “SII Doc. Upload Management”, Base Application (ES layer): modified
- Report 32000004 “Export Ref. Payment - LUM”, Base Application (FI layer): modified
- Table 10865 “Payment Header”, Base Application (FR layer): modified
- Codeunit 10862 “Fiscal Year-FiscalClose”, Base Application (FR layer): modified
- Report 202 “Sales Document - Test”, Base Application (IT layer): modified
- Report 5912 “Service - Credit Memo”, Base Application (IT layer): modified
- Report 5911 “Service - Invoice”, Base Application (IT layer): modified
- Report 5915 “Service Document - Test”, Base Application (IT layer): modified
- Codeunit 27032 “Update CFDI Fields Sales Doc”, Base Application (CA layer): modified
- Codeunit 27091 “Update CFDI Fields Serv. Doc”, Base Application (CA layer): modified
- Codeunit 5912 “ServLedgEntries-Post”, Base Application: modified
- Codeunit 1883 “Sandbox Cleanup local”, Base Application (NL layer): modified
- Page 183 “Reverse Transaction Entries”, Base Application (RU layer): modified
- Codeunit 5632 “FA Jnl.-Post Line”, Base Application (RU layer): modified
- Table 12472 “Posted FA Doc. Line”, Base Application (RU layer): modified
- Codeunit 90 “Purch.-Post”, Base Application (RU layer): modified
- Codeunit 1633 “Office Host Provider”, Base Application: modified
- Table 1107 “Cost Allocation Target”, Base Application: modified
- Report 1139 “Delete Cost Budget Entries”, Base Application: modified
- Report 1130 “Delete Cost Entries”, Base Application: modified
- Codeunit 8912 “Environment Cleanup Subs”, Base Application: modified
- Table 348 “Dimension”, Base Application: modified
- Codeunit 250 “Gen. Jnl.-Post via Job Queue”, Base Application: modified
- Table 411 “IC Dimension”, Base Application: modified
- Codeunit 428 “IC Mapping”, Base Application: modified
- Codeunit 799 “VAT Reporting Date Mgt”, Base Application: modified
- Page 5340 “CRM Systemuser List”, Base Application: modified
- Page 7209 “CDS Couple Salespersons”, Base Application: modified
- Codeunit 6500 “Item Tracking Management”, Base Application: modified
- Codeunit 99000808 “PlanningRoutingManagement”, Base Application: modified
- Codeunit 6721 “Booking Manager”, Base Application: modified
- Codeunit 104057 “Upgrade Custom Report Impl.”, Base Application: modified
- Codeunit 7006 “Price Helper - V16”, Base Application: modified
- Table 167 “Job”, Base Application: modified
- Report 1095 “Update Job Item Cost”, Base Application: modified
- Codeunit 1000 “Job Calculate WIP”, Base Application: modified
- Codeunit 5805 “Item Charge Assgnt. (Purch.)”, Base Application: modified
- Codeunit 5807 “Item Charge Assgnt. (Sales)”, Base Application: modified
- Codeunit 1812 “Data Migration Del G/L Account”, Base Application: modified
- Page 1810 “Data Migration Entities”, Base Application: modified
- Codeunit 130400 “CAL Test Runner”, Base Application: modified
- Page 130401 “CAL Test Tool”, Base Application: modified
- Table 130 “Incoming Document”, Base Application: modified
- Codeunit 8351 “MCP Config Implementation”, System Application: modified
src/Apps/AT/ContosoCoffeeDemoDatasetAT/app/DemoData/Finance/1. Setup Data/CreateATGLAccount.Codeunit.al: modified, not in the BC30 snapshotsrc/Apps/AU/ContosoCoffeeDemoDatasetAU/app/DemoData/Finance/1.Setup Data/CreateAUGLAccounts.Codeunit.al: modified, not in the BC30 snapshotsrc/Apps/CA/ContosoCoffeeDemoDatasetCA/app/DemoData/Finance/1.Setup Data/CreateCAGLAccounts.Codeunit.al: modified, not in the BC30 snapshotsrc/Apps/CH/ContosoCoffeeDemoDatasetCH/app/DemoData/Finance/1.Setup Data/CreateCHGLAccounts.Codeunit.al: modified, not in the BC30 snapshotsrc/Apps/DE/ContosoCoffeeDemoDatasetDE/app/DemoData/Finance/1.Setup data/CreateDEGLAcc.Codeunit.al: modified, not in the BC30 snapshotsrc/Apps/ES/ContosoCoffeeDemoDatasetES/app/DemoData/Finance/1.Setup Data/CreateESGLAccounts.Codeunit.al: modified, not in the BC30 snapshotsrc/Apps/FI/ContosoCoffeeDemoDatasetFI/app/DemoData/Finance/2.Master Data/CreateFIGLAccounts.Codeunit.al: modified, not in the BC30 snapshotsrc/Apps/GB/ContosoCoffeeDemoDatasetGB/app/DemoData/Finance/1.Setup Data/CreateGBGLAccounts.Codeunit.al: modified, not in the BC30 snapshotsrc/Apps/MX/ContosoCoffeeDemoDatasetMX/app/DemoData/Finance/2.Master Data/CreateMXGLAccounts.Codeunit.al: modified, not in the BC30 snapshotsrc/Apps/NL/ContosoCoffeeDemoDatasetNL/app/DemoData/CreateNLGLAccounts.Codeunit.al: modified, not in the BC30 snapshotsrc/Apps/NZ/ContosoCoffeeDemoDatasetNZ/app/DemoData/Finance/1.Setup Data/CreateNZGLAccounts.Codeunit.al: modified, not in the BC30 snapshotsrc/Layers/APAC/BaseApp/Finance/GeneralLedger/Posting/GenJnlPostviaJobQueue.Codeunit.al: modified, not in the BC30 snapshotsrc/Layers/BE/BaseApp/Sales/Posting/SalesPost.Codeunit.al: modified, not in the BC30 snapshotsrc/Layers/ES/BaseApp/Purchases/History/CorrectPostedPurchInvoice.Codeunit.al: modified, not in the BC30 snapshotsrc/Layers/ES/BaseApp/Sales/History/CorrectPostedSalesInvoice.Codeunit.al: modified, not in the BC30 snapshotsrc/Layers/FI/BaseApp/Sales/Posting/SalesPost.Codeunit.al: modified, not in the BC30 snapshotsrc/Layers/NO/BaseApp/Sales/Posting/SalesPost.Codeunit.al: modified, not in the BC30 snapshot
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.”
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Service - Invoice (Document Report) — possibly related: touches Report 5911 “Service - Invoice”
- Snapshot debugging — possibly related: touches Codeunit 80 “Sales-Post”
- Post the year-end closing entry — possibly related: ModifyAll optimization affects posting of year-end closing entries in General Journals. (model-linked)
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).