We want to track the deleted records in OpportunityShare Object for some reason.
This object doesn't support to write a trigger.
Is there way to track those deleted records?. Any suggestion would be appropriated.
Additional Information : Our requirement is - we have a custom object from managed package which has an lookup relationship with Opportunity. We have placed the custom object as a related list under opportunity. Opportunity is shared with different users via role, sharing settings, account team, oppty team, manual sharing.
Exception: User who is having an access to opportunity should get an access to custom object records.
Since the oppty records are shared in many ways with users , we can not go and write trigger on each of those to give an access to custom object. Instead we are trying to copy the OpportunityShare records to CustomObj_Share object so that custom object get the same access of opportunity.
We have tried so far : We are able to copy the records from OpportunityShare to CustomObj_Share by scheduling apex class to run the copy logic.
Issue is : We are unable to track the deleted record information from Opportunityshare when we revoke the access. Due to this we cannot revoke the Custom object access based on opportunity.