Global events are raised by codeunit 1
ApplicationManagement in response to certain application-wide actions, such as opening and closing the company or opening the user's default role center.
The following recipe will show how to subscribe to the global events
OnCompanyClose to log user activities in each company. Event information will be stored in a separate table.
DataPerCompanyfrom the default value