community postIntegration & APIscommunity - not Microsoftreviewed - checked by Opus

BC Friday Tips #27 Replace Blank Values using Transformation Rules

Transformation Rules can replace blank values in Business Central using regular expressions. Set the transformation type to "Replace" and use the pattern ^$ to match empty strings without requiring any development.

post That NAV Guy

Teddy Herryanto · 2025-04-11 · 88 words · about 1 min

"Set Transformation Type to Replace by using Regular Expressions"

Key points

  • Use regular expressions with Transformation Rules to identify and replace empty values
  • The pattern ^$ matches start and end of string to identify blank entries
  • No custom development is needed; this works out of the box

Quotes

  • “Set Transformation Type to Replace by using Regular Expressions” (This is the first step to configure blank value replacement in Business Central)
  • “Together, ^$ identifies an empty string” (Understanding this regex pattern is key to implementing the blank value replacement)
  • “Work out of the box. No development needed.” (Shows this feature requires no AL code or custom development, making it accessible to all users)

Context

  • Features: Transformation Rules, Regular Expressions

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