Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
ProcessWorkitemRequest Class
Namespace
Usage
You must specify the Approval namespace when creating an instance of this class. The constructor for this class takes no arguments. For example:
1Approval.ProcessWorkitemRequest pwr = new Approval.ProcessWorkitemRequest();Inherited Methods
ProcessWorkitemRequest Methods
The following are methods for ProcessWorkitemRequest. All are instance methods.
getAction()
Signature
public String getAction()
Return Value
Type: String
getWorkitemId()
Signature
public String getWorkitemId()
Return Value
Type: String
setAction(actionType)
Signature
public Void setAction(String actionType)
Parameters
- actionType: Type: String Valid values are: Approve, Reject, or Removed. Only system administrators can specify Removed.
Return Value
Type: Void
setWorkitemId(id)
Signature
public Void setWorkitemId(String id)
Parameters
- id: Type: String
Return Value
Type: Void