{"title":"Method attributes","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/attributes/devenv-method-attributes/","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/attributes/devenv-method-attributes, 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/attributes/devenv-method-attributes","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":"Learn how AL method attributes modify method behavior in Business Central and review the syntax for applying attributes and arguments.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":2,"title":"Related information","slug":"related-information","at":909,"chars":101}],"text":"An attribute is a modifier on a method declaration that controls the method's use and behavior. Adding an attribute to a method declaration is also known as decorating the method. For example, the IntegrationEvent attribute makes a method an event publisher. An attribute can have one or more arguments.\nIn AL, attributes are placed before the method, and they have the following syntax:\n```al\n[AttributeName(ArgumentValue1, ArgumentValue2)]\n```\nFor example, the following method uses the IntegrationEvent attribute with both required arguments set to false:\n```al\n[IntegrationEvent(false, false)]\nprocedure OnSomethingChanged()\nbegin\nend;\n```\n> TIP\n> If you already know the name of, for example, a data type, method, property, or trigger, use the Filter by title field in the upper left corner, above the table of contents to find the topic faster. Otherwise, you can scan the table of contents to find it.\n## Related information\nAL method reference<../methods-auto/library>\ndevenv-integrationevent-attribute"}