community postAL Developmentcommunity - not Microsoftreviewed - checked by Opus

BC Friday Tips #64 Filter Tokens Codeunit

The Filter Tokens codeunit enables converting text input into date filters with shortcuts like T for Today, matching FlowFilter behavior for consistent user experience in extensions.

post That NAV Guy

Teddy Herryanto · 2026-02-13 · 77 words · about 1 min

"You can turn a Text field into a Date Filter, just like a FlowFilter"

Key points

  • Text fields can be converted to date filters using the Filter Tokens codeunit
  • Supports date filter shortcuts similar to FlowFilters (e.g., T for Today)
  • Validates user input before converting to proper date filter format
  • Maintains consistent behavior with standard FlowFilter functionality

Quotes

  • “You can turn a Text field into a Date Filter, just like a FlowFilter” (Shows the core capability to extend text input handling to match standard filter behavior)
  • “Use the Filter Tokens codeunit to validate user input and convert it into a proper date filter” (Explains the practical purpose and method for implementing this feature in extensions)

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: Filter Tokens codeunit, date filter conversion, text to filter conversion, filter shortcuts

Source: That NAV Guy, community blog. Summary, key points and quotes are derived (CONTENT-NOTICE.md); read the original for the full text.