Dynamics 365, EnterpriseUse of EVENT in Dynamics 365 for Operations

In legacy X++, it was possible to prescribe in metadata that certain methods were to be executed prior to and after the execution of a method. The information about what subscribes call was recorded on the publisher, which isn’t useful in the Dynamics AX environment. It’s now possible to provide Pre and Post handlers through code, by providing the SubscribesTo attribute on the subscribers.

Here is a blog showing some of basic use of EVENTS handlers of the Form with respective syntax for logics.