{"title":"FieldType option type","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/fieldtype/fieldtype-option/","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/methods-auto/fieldtype/fieldtype-option, 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/methods-auto/fieldtype/fieldtype-option","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":"Represents the type of a table field.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":1,"title":"FieldType option type","slug":"fieldtype-option-type","at":0,"chars":3781},{"level":2,"title":"Members","slug":"members","at":122,"chars":3542},{"level":2,"title":"Related information","slug":"related-information","at":3664,"chars":117}],"text":"# FieldType option type\n> Version: _Available or changed with runtime version 1.0._\nRepresents the type of a table field.\n## Members\nMember|Description\nBoolean|Assumes the values true or false. When formatted, a Boolean field is shown as \"Yes\" or \"No\". The size of the corresponding SQL data type, TINYINT, is 1 byte.\nInteger|Denotes an integer between -2,147,483,647 and 2,147,483,647. The size of the corresponding SQL data type, INTEGER, is 4 bytes.\nBigInteger|A 64-bit integer.\nDecimal|A decimal number between -10^63 and 10^63. The exponent ranges from -63 to 63. Decimal numbers are held in memory with 18 significant digits. The representation of a decimal number is a Binary Coded Decimal (BCD). The size of the corresponding SQL data type, DECIMAL(38,20), is 17 bytes. We recommend that you construct decimals that operate on numbers in the range of +/- 999,999,999,999,999.99. You can construct larger numbers in some cases, but overflow, truncation or loss of precision can occur.\nOption|An option field is defined by using an option string, which is a comma-separated list of strings that represent each valid value of the field. This string is used when a field of type Option is formatted and its value is converted into a string.\nText|Any alphanumeric string. The field must be defined to be between 1 and 2048 characters. The number of bytes used by a text field equals (number of characters + 1) * 2. The additional character is used for the string terminating character, which is '0' in Unicode. The size of a Unicode character is 2 bytes. Therefore, you multiply the number of characters by two to get the size.\nCode|An alphanumeric string, which is right-justified if the contents are numbers only. If letters or blanks occur among the numbers, the contents are left-aligned. All letters are converted to uppercase upon entry. The field must be defined to be between 1 and 2048 characters.\nDateTime|Represents a point in time as a combined date and time. The datetime is stored in the database as Coordinated Universal Time (UTC) and is always displayed as local time in Dynamics 365 Business Central.\nTime|Any time in the range 00:00:00 to 23:59:59.999. A time field contains 1 plus the number of milliseconds since 00:00:00 o'clock, or 0 (zero), an undefined time.\nDate|A date value in the range from January 1, 1753 to December 31, 9999. An undefined date is expressed as 0. All dates have a corresponding closing date. The system considers the closing date for a given date as a period that follows the given date but comes before the next normal date; that is, a closing date is sorted immediately after the corresponding normal date but before the next normal date.\nDateFormula|Used to verify the date entered by the user.\nDuration|Represents the difference between two points in time, in milliseconds. This value can be negative.\nGuid|Globally unique identifier (GUID).\nRecordId|Unique record identifier.\nTableFilter|This data type is used to apply a filter to another table. Currently, this can only be used to apply security filters from the Permission table.\nBlob|Binary Large Object. Used to store bitmaps and memos. Notice that the BLOB is not stored in the record, but in the BLOB area of the table.\nMedia|A complex type that encapsulates media files, such as image .jpg and .png files, in application database tables. The Media data type can be used as a table field data type, but cannot be used as a variable or parameter.\nMediaSet|A complex type that encapsulates media, such as images, in application database tables. The MediaSet data type can be used as a table field data type, but cannot be used as variable or parameter.\n## Related information\nGet Started with AL<../../devenv-get-started>\nDeveloping Extensions<../../devenv-dev-overview>"}