Fflur
2 years agoIdeator I
Is there an easy way to run code after a change/creation transaction finished?
Hello,
I need to send a created/ changed item to another service. I have some code that just needs the ID of an Item, it then retrieves it from the database and sends it to the other service.
The problem I am facing is that, I can't find a way to run said code after the item is saved to the database. If I try to run my code in the onAfterUpdate Event it fails because it tries to retrive the item with the new ID before the transaction finsihed.
So basically what I am looking for is something like an onAfterTransaction Event.
Would appreciate any ideas on how to approach this problem.
Thanks!