Partager via


GlobalVarAccess Property

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

Applies to

C/AL functions.

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

Property Value

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

Remarks

When you set the GlobalVarAccess property to Yes, event subscriber functions that subscribe to an event can call the global variable parameters in the object that is specified by the EventPublisherObject Property, which contains the event publisher function that declares the event. You must add variable parameters to the event subscriber functions manually and use a name and type that matches the variable declaration in the event publisher object.

See Also

Events in Microsoft Dynamics NAV
Publishing Events
Raising Events
Subscribing to Events
GlobalVarAccess Property
C/AL Function Statements