Business Central 2025 wave 2 (BC27): RecordRef – Get/Search field by name (New overloads)
Business Central 2025 wave 2 (BC27) adds new overloads to RecordRef Field and FieldExist methods that enable searching for fields by their name instead of field number, simplifying AL code when working with dynamic field references.

post Dynamics 365 Lab
"New overloads are added to the Field and FieldExist methods, which allows searching for a field by its name."
Key points
- New overloads accept Text parameter for field name in RecordRef.Field() and RecordRef.FieldExist() methods
- Replaces previous workaround approach for getting field information by field name
- Requires runtime version 16.0 or greater; not available in version 15.0
- Makes AL code cleaner when you need to access fields dynamically by name rather than field ID
Quotes
- “New overloads are added to the Field and FieldExist methods, which allows searching for a field by its name.” (This is the core feature announcement that directly describes what BC27 adds to simplify field access in AL code.)
- “‘Field’ is not available in runtime version ‘15.0’. The supported runtime versions are: ‘16.0’ or greater.” (Critical compatibility detail that developers must know to avoid deployment issues when using the new overloads.)
AL objects mentioned
As named in the post. A name that matches one object page by exact type and name links to it; the others stay as named.
- other “RecordRef”
- other “FieldRef”
Heads up
- breaking: “‘Field’ is not available in runtime version ‘15.0’. The supported runtime versions are: ‘16.0’ or greater.” (about version 15.0)
- breaking: “‘FieldExist’ is not available in runtime version ‘15.0’. The supported runtime versions are: ‘16.0’ or greater.” (about version 15.0)
Context
- Features: RecordRef Field method by name, RecordRef FieldExist method by name, Dynamic field access, Field lookup overloads
- Versions: BC27, 2025 wave 2, runtime 16.0
Source: Dynamics 365 Lab - Yun Zhu, community blog. Summary, key points and quotes are derived (CONTENT-NOTICE.md); read the original for the full text.