{"title":"InitValue Property","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/properties/devenv-initvalue-property/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/properties/devenv-initvalue-property, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/properties/devenv-initvalue-property","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Sets the initial value of this field when a user creates a new record.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":2,"title":"Applies to","slug":"applies-to","at":131,"chars":27},{"level":2,"title":"Syntax","slug":"syntax","at":158,"chars":35},{"level":2,"title":"Remarks","slug":"remarks","at":193,"chars":760},{"level":2,"title":"Related information","slug":"related-information","at":953,"chars":117}],"text":"> Version: _Available or changed with runtime version 1.0._\nSets the initial value of this field when a user creates a new record.\n## Applies to\n Table field\n## Syntax\n```al\nInitValue = 1;\n```\n## Remarks\nThis attribute is only important if you create the record in a window or by using the AL methods ../methods-auto/system/system-clear-joker-method, or ../methods-auto/system/system-clearall-method. For example, this attribute is commonly used in Boolean fields when you want either true or false to be the default.\n> NOTE\n> For a new field added in the table, values are initialized by default according to the data type or they are initialized by the value given in the InitValue property for all new records. If you want to change the InitValue for existing records, you have to specify it in the code and run an upgrade because the value you've set in the InitValue property for the new record doesn't set the values for already existing records.\n## Related information\n../methods-auto/system/system-clear-joker-method\n../methods-auto/system/system-clearall-method"}