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
michaell1999michaell1999 

Batch Apex to create large number of opportunities an quotes

Can I use batch apex to select say 5.000 company records then create a unique opportunity with unique products?

5,000 opportunities are created and each one has products based on what each company currently owns.

WesNolte__cWesNolte__c

Yes this is possible, have you tried it at all?

 

Wes

cyrilvercyrilver

I've exactly the same need.

I managed to create the opportunities but how to affect the good product to the good opportunity just created ?

Regards,