---
schema_version: "1"
id: 3989009f49b56a176fb7c64874bbd7813ce61176ffe7d2f9f3bcba6b99ece421
title: DevopsQualityGateRule
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_devopsqualitygaterule.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_devopsqualitygaterule.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: dca95cdfc5eeb1f4b28bb4ce8866bd0de97573db2fab871052470d2be5713aa6
description: Defines the criteria that must be evaluated as part of a quality gate assessment within the DevOps process. Each rule specifies a validation condition, such as severity, pass percentage, or essential test requirements, along with an optional threshold value. These rules are used to determine whether a quality gate passes or fails before allowing progression through the deployment pipeline. This object is available in API version 67.0 and later.
---
# DevopsQualityGateRule

Defines the criteria that must be evaluated as part of a quality gate assessment within the DevOps process. Each rule specifies a validation condition, such as severity, pass percentage, or essential test requirements, along with an optional threshold value. These rules are used to determine whether a quality gate passes or fails before allowing progression through the deployment pipeline. This object is available in API version 67.0 and later.

## Supported Calls

create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(), undelete(), update(), upsert()

## Fields

| Field | Details |
| --- | --- |
| DevopsQualityGateId | 
Type

reference

Properties

Create, Filter, Group, Sort

Description

References the quality gate to which this rule belongs.

Relationship Name

DevopsQualityGate

Relationship Type

Master-detail

Refers To

DevopsQualityGate (the parent object)



 |
| LastReferencedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The timestamp when the current user last accessed this record indirectly, such as through a related record or list view.



 |
| LastViewedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The timestamp when the current user last viewed this record or list view. If this value is null, and LastReferenceDate is not null, the user accessed this record or list view indirectly.



 |
| Name | 

Type

string

Properties

Autonumber, Defaulted on create, Filter, idLookup, Sort

Description

System-generated unique identifier for the quality gate rule record.



 |
| Rule | 

Type

picklist

Properties

Create, Defaulted on create, Filter, Group, Restricted picklist, Sort, Update

Description

Specifies the rule used to evaluate the quality gate.

Possible values are:

- ESSENTIAL
- PASS\_PERCENTAGE
- SEVERITY

The default value is SEVERITY.



 |
| Threshold | 

Type

int

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

Defines the threshold value used when evaluating the quality gate rule.



 |