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
Gina GarciaGina Garcia 

Update on Opportunity Split through trigger

Hello All,
       Have you tried updating Opportunity Split through trigger ?  How did you do that? Thanks.
HARSHIL U PARIKHHARSHIL U PARIKH
Hope this link helps: https://developer.salesforce.com/forums/?id=906F000000094OAIAY
Gina GarciaGina Garcia
Hi Govind, thank you for your reply. Actually, I was able to update Opportunity Split through trigger but it was not working properly. Since update is not working, I've tried to do INSERT ALL (new opp splits) then DELETE ALL (old opp splits). But still encountered issues in INSERT/DELETE ALL solutions. What is the best way to do update/insert opportunity splits? Thank you so much.
Gina GarciaGina Garcia
Sorry for my vague question. I need to UPDATE OPPORTUNITY SPLIT for every UPDATE of owner and co-owner of OPPORTUNITY, that's why I've used TRIGGER. Many thanks.