community postAL Developmentcommunity - not Microsoftreviewed - checked by Opus

BC Friday Tips #78 InitValue Property

The InitValue property sets a default value for new table fields when records are created, initialized, or cleared. This property applies only to new records and cannot be used on standard fields through table extensions.

post That NAV Guy

Teddy Herryanto · 2026-08-07 · 110 words · about 1 min

"It only kicks in when a new record is created, or via Init(), Clear(), or ClearAll(). It won't touch existing records."

Key points

  • InitValue provides a default value for table fields without requiring code
  • It activates when new records are created or when Init(), Clear(), or ClearAll() are called
  • Does not affect existing records, only new ones
  • Cannot be applied to standard fields through table extensions

Quotes

  • “It only kicks in when a new record is created, or via Init(), Clear(), or ClearAll(). It won’t touch existing records.” (Clarifies when InitValue applies and that it does not modify existing data)
  • “You can’t set InitValue on a standard field through a table extension.” (Important limitation when extending standard tables)

Context

  • Features: InitValue property, Default field values, Record initialization

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