#253 knowledge(performance): add trigger-only fields to API pages with AddLoadFields
New knowledge article documents how to use AddLoadFields on API pages to prevent JIT loading failures when accessing unbound fields in OnAfterGetRecord.
- 4files
- 3AL files
- 0objects
Pull request · merged into main on 2026-11-02 by pri-kise · 4 files (+128 -0), 3 AL · feature · tier official · reviewed (checked by Opus)
What changed
- Explains that unbound Rec fields read in OnAfterGetRecord on API pages cause per-row JIT loads
- Recommends Rec.AddLoadFields in OnOpenPage to avoid ‘Inconsistent read’ and JIT loading failures
- Warns against Rec.SetLoadFields in OnOpenPage because it replaces the platform’s layout-based field selection
- Adds bad and good AL examples for the pattern
- Registers the new article in the evaluation review fixtures
AL objects touched
microsoft/knowledge/performance/addloadfields-for-trigger-only-fields-on-api-pages.bad.al: added, not in the BC? snapshot yetmicrosoft/knowledge/performance/addloadfields-for-trigger-only-fields-on-api-pages.good.al: added, not in the BC? snapshot yetmicrosoft/knowledge/performance/addloadfields-for-trigger-only-fields-on-api-pages.md: added, not in the BC? snapshot yet
Context
- Systems: platform, integration
Source: metadata of a merged pull request in microsoft/BCQuality (bcquality): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).