Hi, I have a question, I want to prevent record in my entity to be duplicated actually, I already create a plugin that runs on pre-operation it's working but its buggy. Why its buggy? because when the record is created at the same time when I said the same time the difference between the creation of one record with another is only a matter of a millisecond. So when both are checking if the record with the same name is already created or not it will return false. I come with a solution to make my plugin runs on post-operation and make it asynchronous, but it will delete both records instead. Any suggestion for this? Thanks in advance
*This post is locked for comments
I have the same question (0)