Table "Event Subscription"

ID 2000000140
Namespace: System.Environment

Virtual table that provides information about active event subscriptions in the system. This table enables monitoring and management of event publisher-subscriber relationships across all applications.

Remarks

The Event Subscription table is crucial for understanding the event-driven architecture within Business Central. It provides visibility into which events are being subscribed to, how often they're called, and their current status. This information is essential for debugging event-related issues, monitoring system performance, and understanding extensibility patterns. The table tracks events from all types including Business Events, Integration Events, and Internal Events, showing both base application and extension-based subscriptions. Each subscription can be individually activated or deactivated, and the table maintains statistics about event usage patterns.

Properties

Name Value
DataPerCompany False
Scope Cloud

Fields

Name Type Description
"Subscriber Codeunit ID" Integer

The codeunit ID that contains the event subscriber function.

"Subscriber Function" Text[250]

The name of the function that subscribes to the event.

"Event Type" Option

The type of event being subscribed to (Trigger, Business, Integration, or Internal).

"Publisher Object Type" Option

The type of object that publishes the event (Table, Report, Codeunit, etc.).

"Publisher Object ID" Integer

The ID of the object that publishes the event.

"Published Function" Text[250]

The name of the function that publishes the event.

Active Boolean

Indicates whether the event subscription is currently active and will be triggered.

"Number of Calls" BigInteger

The total number of times this event subscription has been called since system startup.

"Error Information" Text[250]

Error information if the event subscription has encountered issues during execution.

"Originating Package ID" Guid

The package identifier of the application that contains the subscriber function.

"Originating App Name" Text[250]

The name of the application that contains the subscriber function.

"Subscriber Instance" Text[250]

Instance information for the subscriber when multiple instances are supported.

"Active Manual Instances" Integer

The number of active manual instances for this event subscription.

SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemRowVersion BigInteger

See also