Approval Namespace

The Approval namespace provides classes and methods for approval processes.

The following are the classes in the Approval namespace.

  • LockResult Class

    The result of a record lock returned by a System.Approval.lock() method.

  • ProcessRequest Class

    The ProcessRequest class is the parent class for the ProcessSubmitRequest and ProcessWorkitemRequest classes. Use the ProcessRequest class to write generic Apex that can process objects from either class.

  • ProcessResult Class

    After you submit a record for approval, use the ProcessResult class to process the results of an approval process.

  • ProcessSubmitRequest Class

    Use the ProcessSubmitRequest class to submit a record for approval.

  • ProcessWorkitemRequest Class

    Use the ProcessWorkitemRequest class for processing an approval request after it is submitted.

  • UnlockResult Class

    The result of a record unlock, returned by a System.Approval.unlock() method.