Approval Namespace
The Approval namespace provides classes and methods for approval processes.
The following are the classes in the Approval namespace.
-
The result of a record lock returned by a
System.Approval.lock()method. -
The
ProcessRequestclass is the parent class for theProcessSubmitRequestandProcessWorkitemRequestclasses. Use theProcessRequestclass to write generic Apex that can process objects from either class. -
After you submit a record for approval, use the
ProcessResultclass to process the results of an approval process. -
Use the
ProcessSubmitRequestclass to submit a record for approval. -
Use the
ProcessWorkitemRequestclass for processing an approval request after it is submitted. -
The result of a record unlock, returned by a
System.Approval.unlock()method.