{"title":"Database.SerialNumber() Method","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/database/database-serialnumber-method/","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/database/database-serialnumber-method, 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/database/database-serialnumber-method","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":"Gets a string that contains the serial number of the license file for your system.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":2,"title":"Syntax","slug":"syntax","at":143,"chars":197},{"level":2,"title":"Return Value","slug":"return-value","at":340,"chars":71},{"level":2,"title":"Example","slug":"example","at":411,"chars":406},{"level":2,"title":"Related information","slug":"related-information","at":817,"chars":136}],"text":"> Version: _Available or changed with runtime version 1.0._\nGets a string that contains the serial number of the license file for your system.\n## Syntax\n```al\nString :=   Database.SerialNumber()\n```\n> NOTE\n> This method can be invoked using property access syntax.\n> NOTE\n> This method can be invoked without specifying the data type name.\n## Return Value\nString\nType: ../text/text-data-type\nThe serial number.\n## Example\n```al\nvar\n    SN: Text[30];\n    Text000: Label 'The serial number for this software package is:%1.';\nbegin\n    SN := SerialNumber;\n    Message(Text000, SN);\nend;\n```\nThe output of this example is as follows:\nThe serial number for this software package is:\nW1-ZA-002-6R75A-7\n> NOTE\n> The serial number depends on your licensed version of Dynamics 365. The serial number shown here is an example.\n## Related information\ndatabase-data-type\nGet Started with AL<../../devenv-get-started>\nDeveloping Extensions<../../devenv-dev-overview>"}