---
schema_version: "1"
id: b691d9d4b69e6ac7bf5077048b844f028de6b2ec76b903b6499efefbc9dfa179
title: ApprovalWorkItemCondition
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_approvalworkitemcondition.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_approvalworkitemcondition.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: cace41d1ebccd71ba4d1fce2cc68a0d8384511b9adcba9ec4dfb50be54604fd1
description: 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.
---
# 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





 |