IncludeSender Property

Specifies whether global functions in the object that contains the event publisher function are exposed to event subscriber functions that subscribe to the event.

Applies to

  • C/AL functions.

    This property is only available when the Event Property is set to Publisher.

Property Value

Yes to expose the global functions in the object that contains the event publisher function to event subscriber functions; otherwise, No. The default value is No.

Remarks

Setting the property to Yes enables you to call global functions in the object that contains the event publisher function from event subscriber functions that subscribe to the published event.

When you set the property to Yes, the signature of event subscriber functions that subscribe to the published event automatically include a VAR parameter for the published event object, as shown in the following example:

LOCAL [EventSubscriber] CheckAddressLine(VAR Sender : Codeunit "My Publisher Object")

For more information about events, see Events in Microsoft Dynamics NAV.

See Also

Reference

GlobalVarAccess Property

Concepts

Publishing Events
Raising Events
Subscribing to Events
C/AL Function Statements