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
Paula Kern 4Paula Kern 4 

submit list of opportunities to an approval process

Does anyone have an example for this.  Not from a trigger but i want to pass in a list of opportunities and then send each one to an already existing approval process
ShirishaShirisha (Salesforce Developers) 
Hi Paula,

Greetings!

Please refer the sample code to submit the records for an approval process using the apex code:

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_process_example.htm

Kindly mark it as best answer if it helps so that it can help others in the future.

Warm Regards,
Shirisha Pathuri