# BusinessEvent attribute
> Version: _Available or changed with runtime version 1.0._
Specifies that the method is published as a business type event.
## Applies to
 Method
## Syntax
```al
[BusinessEvent(IncludeSender: Boolean [, Isolated: Boolean])]
```
### Arguments
IncludeSender
Type: ../methods-auto/boolean/boolean-data-type
Specifies that the firing instance of the object is available as a parameter to subscribers of that event.
*[Optional] Isolated*
Type: ../methods-auto/boolean/boolean-data-type
Specifies if event subscribers should be invoked in an isolated transaction.
## Snippet support
Typing the shortcut teventbus will create the basic BusinessEvent attribute syntax when using the AL Language extension for Microsoft Dynamics 365 Business Central in Visual Studio Code.
## Remarks
Learn more about the different event types in ../devenv-event-types.
When you set IncludeSender to true, an event subscriber can declare a sender parameter that references the publishing object, as shown in the following example:
```al
codeunit 50100 MyPublishingCodeunit
{
    [BusinessEvent(true)]
    procedure MyBusinessEvent()
    begin
    end;
}

codeunit 50101 MySubscribingCodeunit
{
    [EventSubscriber(ObjectType::Codeunit, Codeunit::MyPublishingCodeunit, 'MyBusinessEvent', '', true, true)]
    local procedure MySubscriber(Sender: Codeunit MyPublishingCodeunit)
    begin
        // My subscriber code
    end;
}
```
Learn more about isolated events in ../devenv-events-isolated.
## Example
This example publishes a business type event by using the OnAddressLineChanged method. The method takes one Text parameter. The IncludeSender argument is set to false.
```al
[BusinessEvent(false)]
procedure OnAddressLineChanged(Line: Text[100])
begin
end;
```
## Related information
AL method reference<../methods-auto/library>
../devenv-events-in-al
../devenv-publishing-events
../devenv-raising-events
../devenv-subscribing-to-events
../devenv-events-isolated
devenv-method-attributes

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-businessevent-attribute, 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. https://jonas-paprotka.de/docs/dev-itpro/developer/attributes/devenv-businessevent-attribute/
