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
Developer118Developer118 

Insert OpposrtunityShare

Hi,
     I have written trigger which manulaay adds a set of users to the OpportunityShare Object whenever the Owner of Opportunity is Changed, This works fine when the Owner is changed once, But once again when i change the Owner of the same Opportunity, the Users manually added to OpportunityShare Object prevuiously are lost.

I need to reatin the sharing on the Opportuntiy once the users are manually added to the Opportuntiy Share Object no matter how many times Owner is Changed.

Can someone help me out on this.

Many Thanks in Advance,
Developer118