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
AnchalGoelAnchalGoel 

call a standard process in a class

How do you call a standard process like Submit for Approval (Workflow Approval process) in a Custom controller class?
hisrinuhisrinu
You have an approval class in Apex.
So you can use that class to submit that record for approval.

 You will get more information in apex language reference guide.

Link is here http://www.salesforce.com/us/developer/docs/apexcode/index.htm