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
CUAdminCUAdmin 

Mass Opportunity Clone

What's the best way to clone Opportunities via API in .NET?
 
I need something very close to the SF Clone function.
 
I need to clone somewhere close to 900 opportunities. Only thing that will be different in the newly created opportunity is the pricebookentryId . For this I would hate to read every single opportunity, contact role, opportunitylineitem objects, change only the pricebookentry of opportunitylineitem and push every one of them back.
 
Isn't there an easy way to do something like this??