ApprovalWorkItemCondition

Represents a condition for starting and concluding an approval step that's evaluated as part of the smart approval process. This object is available in API version 64.0 and later.

Supported Calls

describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()

Special Access Rules

Fields

Field Details
ApprovalWorkItemCriteriaId
Type
reference
Properties
Filter, Group, Sort
Description
The approval work item criteria associated with the approval work item condition. The approval work item criteria defines the logic by which the approval conditions are evaluated.
This field is a relationship field.
Relationship Name
ApprovalWorkItemCriteria
Relationship Type
Master-detail
Refers To
ApprovalWorkItemCriteria (the master object)
ConditionSequencePosition
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The order in which the condition is evaluated relative to other conditions that are part of the requirement logic.
HasEvaluationSucceeded
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the first value (left side) evaluates against the second value (right side) successfully (true) or not (false).
The default value is false.
LeftValue
Type
textarea
Properties
Nillable
Description
The first value of the condition that's evaluated against the second value.
LeftValueDataType
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The data type of the first operand (left side) in this condition.
Possible values are:
  • Apex
  • Boolean
  • Currency
  • Date
  • DateTime—Date/Time
  • MultiSelectPicklist—Multi-Select Picklist
  • Number
  • Other
  • Picklist
  • Text
  • Time
Name
Type
string
Properties
Autonumber, Defaulted on create, Filter, idLookup, Sort
Description
The name of the approval work item condition.
OperatorType
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The operator for the condition.
Possible values are:
  • Contains
  • EndsWith—Ends With
  • Equal
  • GreaterThan—Greater Than
  • GreaterThanOrEqualTo—Greater Than Or Equal
  • HasError—Error
  • In
  • IsBlank—Blank
  • IsChanged—Changed
  • IsEmpty—Empty
  • IsNull—Null
  • LessThan—Less Than
  • LessThanOrEqualTo—Less Than Or Equal
  • None
  • NotEqualTo—Does Not Equal
  • NotIn—Not In
  • StartsWith—Starts With
  • WasSelected—Was Selected
  • WasSet—Was Set
  • WasVisited—Was Visited
RightValue
Type
textarea
Properties
Nillable
Description
The second value (right side) of the condition that's evaluated against the first value.
RightValueDataType
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The data type of the second operand for the condition.
Possible values are:
  • Apex
  • Boolean
  • Currency
  • Date
  • DateTime—Date/Time
  • MultiSelectPicklist—Multi-Select Picklist
  • Number
  • Other
  • Picklist
  • Text
  • Time

Associated Objects

This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object. Otherwise, they’re available in the specified API version and later.

ApprovalWorkItemConditionChangeEvent
Change events are available for the object.
ApprovalWorkItemConditionFeed
Feed tracking is available for the object.
ApprovalWorkItemConditionHistory
History is available for tracked fields of the object.
ApprovalWorkItemConditionOwnerSharingRule
Sharing rules are available for the object.
ApprovalWorkItemConditionShare
Sharing is available for the object.