BC Friday Tips #77 TestField Show Record Action
TestField automatically adds a Show Record button to error dialogs when field validation fails, letting users jump directly to the problem record. This feature works natively for tables with single primary keys like Customer, but not for compound primary key tables like Sales Header.
Read it hereOpen in Claudehttps-thatnavguy-com-blog-2026-bc-friday-tips-77-testfield-show-record-action--16034e644a.md

post That NAV Guy
"When TestField fails, Business Central can give users a direct action to open the record and fix the problem."
Key points
- TestField can automatically generate a Show Record action without requiring ErrorInfo code
- Business Central resolves the target page from Card pages matching the failing record’s table
- Feature works for single primary key tables but not compound primary key tables
- Users can directly open and fix problematic records instead of manually searching
Quotes
- “When TestField fails, Business Central can give users a direct action to open the record and fix the problem.” (Explains the core benefit of TestField’s Show Record functionality)
- “Business Central resolves the target page from the Card page whose SourceTable matches the failing record’s table.” (Clarifies the mechanism for how the platform determines which page to show)
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.
Context
- Features: TestField method, Show Record action, error dialogs, field validation
Source: That NAV Guy, community blog. Summary, key points and quotes are derived (CONTENT-NOTICE.md); read the original for the full text.