X++ Code Extension to Send Business Event After Update Committed?
I’m working on an issue in an XPP extension in our D365 environment. My company has a D365 integration that relies on a business event emitted when a sales order is updated (with certain conditions met). Our consultants implemented this with an XPP code extension of the SalesTable class, where a custom business event is created and sent after calling next update. In debugging, I’ve identified that the method is called within two nested transactions. I suspect this is the cause of an intermittent problem, in which a process that calls a D365 API in response to the business event receives stale data.