Posted inDynamics NAV & BC Tips & tricks
How you can protect your code from commits happening in event subscriber code
Thanks to the Decoration of the CommitBehavior function, we can define if we want to avoid at all costs, that a Commit can be made within said method. If this is applied on an IntegrationEvent, then any Subscription Event that tries to add a Commit would…