Approval In Salesforce!


The Approval namespace in Salesforce provides a set of classes and methods specifically designed for managing approval processes.

Here is an overview of the classes within this namespace:

1. LockResult Class:

This class represents the result of a record lock operation, which is performed using the System.Approval.lock() method. 

It provides information about the success or failure of the lock operation.

2. ProcessRequest Class:

The ProcessRequest class acts as a parent class for two other classes, namely ProcessSubmitRequest and ProcessWorkitemRequest. 

It is useful for writing generic Apex code that can handle objects from either of these classes.

3. ProcessResult Class:

After submitting a record for approval, you can use the ProcessResult class to handle the outcome of the approval process. 

It provides methods and properties to analyze and process the results.

4. ProcessSubmitRequest Class:

Use the ProcessSubmitRequest class when you want to submit a record for approval. 

It allows you to specify various parameters and options related to the approval submission.

5. ProcessWorkitemRequest Class:

The ProcessWorkitemRequest class is used for processing an approval request after it has been submitted. 

It provides methods to accept, reject, or reassign the approval request, among other functionalities.

6. UnlockResult Class:

This class represents the result of a record unlock operation, which is performed using the System.Approval.unlock() method. 

It provides information about the success or failure of the unlock operation.

Follow Us

Posted By : Sudeer Kamat Date :

view_module Related

label Labels

Comments 0