IDAM delete the entry in UNSAccountBInUNSGroupB before completing the custom process

I have integrated a target system that provides a unique ID when a role is assigned to a user. I have saved this unique ID in the UNSAccountBInUnsGroupB table in a new custom column. This unique ID is mandatory when a user unsubscribes from the request via the portal.
However, there are some parallel IDAM processes that delete entries from UNSAccountBInUnsGroupB, causing us to lose the unique ID required for role de-assignment.
Can we configure these processes to wait until the initial process is completed, and then allow IDAM to execute the remaining job-related processes? or any other solution