Newer Version Available

This content describes an older version of this product. View Latest

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(), update()

Special Access Rules

This object is available in Enterprise, Professional, Unlimited, and Developer Editions where Advanced Approvals is enabled with the Modify All Data or the Approval Admin user permission.

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, Update
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, Update
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.
IsConditionExcluded
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the condition must be excluded from evaluation (true) or not (false) in an auto-approval process.
The default value is false.
LeftValue
Type
textarea
Properties
Nillable, Update
Description
The first value of the condition that's evaluated against the second value.
LeftValueDataType
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort, Update
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 sequentially-generated name of the approval work item condition record, for example AWCO-000000071.
OperatorType
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The operator for the condition.
Possible values are:
  • Contains
  • EndsWith
  • Equal
  • GreaterThan
  • GreaterThanOrEqualTo
  • HasError
  • In
  • IsBlank
  • IsChanged
  • IsEmpty
  • IsNull
  • LessThan
  • LessThanOrEqualTo
  • None
  • NotEqualTo
  • NotIn
  • StartsWith
  • WasSelected
  • WasSet
  • WasVisited
RightValue
Type
textarea
Properties
Nillable, Update
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, Update
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