function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Anvesh PaidakulaAnvesh Paidakula 

How to restrict delete method for this ?

I have trigger used to share  contact records for users. And working okay. But the problem is  i have another  trigger and in that there is a delete method  for contact share  which deletes all Manual sharing and later inserts for another users..

When my first trigger fires it shares the record and parallel the other trigger also fired and deletes Manual sharing
janardhan mjanardhan m
Hi Anvesh,

Try to impelement both logics in one trigger.It is also a best practice.