Syntax
The syntax of the AL language is designed to assist in building business applications.
Tip
Use Ctrl+Space to trigger IntelliSense and get assistance on code completion, parameter info, quick info, and member lists.
In addition to the inline help of IntelliSense, you have access to various snippets that will give you a template for a specific object type.
Note
Use a code snippet from an .al file by start typing the snippet name.
Examples of snippets
The following is a non-comprehensive list of the snippets that you can use in the AL.
| Type... | To get a... |
|---|---|
taction |
Action structure |
tassert |
Assert error structure |
tcaseof |
Case of structure |
tcaseelse |
Case else structure |
tcodeunit |
Codeunit object structure |
tcontroladdin |
Control add-in structure |
tenum |
Enum structure |
tenumext |
Enum extension structure |
tfield |
Table field structure |
tfieldpage |
Page field structure |
tfor |
For structure |
tif |
If structure |
tifelse |
If else structure |
tpage |
Page object structure. Choose between Card, List, API, or RoleCenter type. |
tpageext |
Page extension structure |
tprocedure |
Method structure |
tquery |
Query object structure |
trepeat |
Repeat until structure |
treport |
Report object structure |
ttable |
Table object structure |
ttableext |
Table extension structure |
ttrigger |
Trigger structure |
twithdo |
With do structure |
twhile |
While structure |
txmlport |
XMLport object structure |
See Also
Feedback
Submit and view feedback for