Method Attributes

An attribute is modifier on a method declaration that specifies information that controls the method's use and behavior. For example, decorating a method with the Integration attribute sets the method to be an event publisher. An attribute can have one or more arguments that set properties for the method instance.

In AL, attributes are placed before the method, and have the following syntax:

[Attribute_Name(ArgumentName : data_type, ArgumentName : data_type)]

For example, the Integration attribute has two arguments, and the syntax is:

[Integration(IncludeSender : Boolean, GlobalVarAccess : Boolean)]


The following method attributes are available:

Integration Attribute

Business Attribute

EventSubscriber Attribute

See Also

AL Data Types
AL Method Reference