{"title":"Syntax and snippets","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/devenv-syntax/","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/devenv-syntax, 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/devenv-syntax","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":"Description of syntax and snippets available with the AL language for Business Central.","date":"2024-03-01","meta":{"topic":"article"},"outline":[{"level":1,"title":"Syntax and snippets","slug":"syntax-and-snippets","at":0,"chars":2046},{"level":2,"title":"Examples of snippets","slug":"examples-of-snippets","at":1010,"chars":925},{"level":2,"title":"Related information","slug":"related-information","at":1935,"chars":111}],"text":"# Syntax and snippets\n> NOTE\n> We're working to improve the onboarding experience for AL developers. If you have feedback about this article, use the Feedback section at the bottom of the article to tell us what you'd like to see.\n> We also welcome contributions to our documentation. Learn more about contributing in Contribute to the help<../help/contributor-guide#contributing>.\nThe syntax of the AL language is designed to help building business applications for Business Central.\n> TIP\n> Use Ctrl+Space to trigger IntelliSense and get assistance on code completion, parameter info, quick info, and member lists. For more information about snippets, see Syntax and snippets<devenv-syntax>.\nIn addition to the inline help of IntelliSense, you have access to various snippets that give you a template for a specific object type. Use a code snippet from an .al file by start typing the snippet name. All snippets start with the letter t. For example, to get a template for a table, type ttable and press Tab.\n## Examples of snippets\nThe following list is a noncomprehensive list of the snippets that you can use in the AL.\nType...|To get a...\ntaction|Action structure\ntassert|Assert error structure\ntcaseof|Case of structure\ntcaseelse|Case else structure\ntcodeunit|Codeunit object structure\ntcontroladdin|Control add-in structure\ntenum|Enum structure\ntenumext|Enum extension structure\ntfield|Table field structure\ntfieldpage|Page field structure\ntfor|For structure\ntif|If structure\ntifelse|If else structure\ntpage|Page object structure. Choose between Card, List, API, RoleCenter, or PromptDialog type.\ntpageext|Page extension structure\ntprocedure|Method structure\ntquery|Query object structure\ntrepeat|Repeat until structure\ntreport|Report object structure\nttable|Table object structure\nttableext|Table extension structure\nttrigger|Trigger structure\ntwithdo|With do structure\ntwhile|While structure\ntxmlport|XMLport object structure\n## Related information\nGet started with AL<devenv-get-started>\nDeveloping extensions in AL<devenv-dev-overview>"}