---
schema_version: "1"
id: 93e99e026f64f7f7cab4c29a0b2638d5b7b75f96629001390e0e0866602eabce
title: DevopsEnvDeployment
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_devopsenvdeployment.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_devopsenvdeployment.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 9ff455c8a4192424001bb2c73788b69e68746b150c24d9928f65a947c1cb012a
description: Represents a record created during the promotion or deployment process to track deployment actions, status, and associated details within a Lifecycle Center pipeline. This object is available in API version 66.0 and later.
---
# DevopsEnvDeployment

Represents a record created during the promotion or deployment process to track deployment actions, status, and associated details within a Lifecycle Center pipeline. This object is available in API version 66.0 and later.

## Supported Calls

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

## Fields

| Field | Details |
| --- | --- |
| BackSyncStageId | 
Type

reference

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The ID of the pipeline stage from which changes are back-synced to a development environment. This is a relationship field.

Relationship Name

BackSyncStage

Refers To

DevopsPipelineStage



 |
| CheckDeployCompletionDate | 

Type

dateTime

Properties

Create, Filter, Nillable, Sort, Update

Description

The date and time when a validate-only deployment completed.



 |
| CheckDeployDate | 

Type

dateTime

Properties

Create, Filter, Nillable, Sort, Update

Description

The date and time when a validate-only deployment started.



 |
| CheckDeployRequestInfoId | 

Type

reference

Properties

Create, Filter, Nillable, Sort, Update

Description

The ID of the DevopsRequestInfo record tracking the status of the deployment. This is a relationship field.

Relationship Name

CheckDeployRequestInfo

Refers To

DevopsRequestInfo



 |
| CheckDeployStatus | 

Type

picklist

Properties

Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort

Description

The current status of the deployment. The default value is NEW.

Possible values are:

- CANCELLED
- ERROR
- FINALIZING
- INTERRUPTED
- IN\_PROGRESS
- NEW
- SUCCESS





 |
| DeployCompletionDate | 

Type

dateTime

Properties

Create, Filter, Nillable, Sort, Update

Description

The date and time when the deployment operation completed.



 |
| DeployRequestInfoId | 

Type

reference

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The ID of the DevopsRequestInfo record tracking the status of the full deployment. This is a relationship field.

Relationship Name

DeployRequestInfo

Refers To

DevopsRequestInfo



 |
| DeployStatus | 

Type

picklist

Properties

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

Description

The current status of the deployment operation. The default value is NEW.

Possible values are:

- CANCELLED
- ERROR
- FINALIZING
- INTERRUPTED
- IN\_PROGRESS
- NEW
- SUCCESS





 |
| DeploymentDate | 

Type

dateTime

Properties

Create, Filter, Nillable, Sort, Update

Description

The date and time when the deployment started.



 |
| DeploymentIdentifier | 

Type

string

Properties

Create, Filter, Group, idLookup, Nillable, Sort, Update

Description

A unique identifier for the deployment.



 |
| DevopsPipelnStgPromId | 

Type

reference

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The ID of the associated pipeline stage promotion record. This is a relationship field.

Relationship Name

DevopsPipelnStgProm

Refers To

DevopsPipelnStgProm



 |
| EndRevisionCounter | 

Type

int

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The revision counter value representing the end state of the source control after this deployment.



 |
| IsCheckDeploy | 

Type

boolean

Properties

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

Description

Indicates whether this is a validate-only deployment. The default value is false.



 |
| IsFullDeploy | 

Type

boolean

Properties

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

Description

Indicates whether all changes in the branch is deployed instead of just the changes. The default value is false.



 |
| LastReferencedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

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



 |
| 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 isn't null, the user accessed this record or list view indirectly.



 |
| Name | 

Type

string

Properties

Autonumber, Defaulted on create, Filter, idLookup, Sort

Description

The name of the environment deployment record.



 |
| RunTests | 

Type

textarea

Properties

Create, Nillable, Update

Description

A comma-separated list of specific Apex tests to run if TestLevel is set to RunSpecifiedTests.



 |
| StartRevisionCounter | 

Type

int

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The revision counter value representing the starting state of the source control before this deployment.



 |
| Status | 

Type

picklist

Properties

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

Description

The overall status of the deployment operation. The default value is NEW.



 |
| SwapStageId | 

Type

reference

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The ID of the pipeline stage associated with the replace environment operation. This is a relationship field.

Relationship Name

SwapStage

Refers To

DevopsPipelineStage



 |
| TargetDeployOrgId | 

Type

reference

Properties

Create, Filter, Group, Sort

Description

The ID of the target DevopsEnvironment where the change is deployed. This is a relationship field.

Relationship Name

TargetDeployOrg

Relationship Type

Parent-detail

Refers To

DevopsEnvironment



 |
| TestLevel | 

Type

picklist

Properties

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

Description

Specifies which Apex tests to run during the deployment. The default value is Default.

Possible values are:

- Default—No tests in sandboxes; all local tests in production.
- NoTestRun—No tests are run.
- RunAllTestsInOrg—All tests in the org are run, including those from installed packages.
- RunLocalTests—All tests in the org are run, excluding those from installed packages.
- RunSpecifiedTests—Only the tests specified in the RunTests field are run.





 |

## Usage

Validate-only deployment is not supported in the Lifecycle Center.

## Associated Objects

This object has the following associated objects.

[DevopsEnvDeployementHistory](https://developer.salesforce.com/docs/atlas.en-us.264.0.object_reference.meta/object_reference/sforce_api_associated_objects_history.htm)

History is available for tracked fields of the object.

#### See Also

- [DevopsEnvironment](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_devopsenvironment.htm "Represents a connection from Lifecycle Center to an environment, which currently can be only a Salesforce org. Developers use development environments to do their work. Each pipeline stage has an associated environment. This object is available in API version 66.0 and later.")
- [DevopsEnvDeploymentMbr](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_devopsenvdeploymentmbr.htm "Represents a metadata component or configuration data record included in a deployment to a Lifecycle Center pipeline environment. Use it to verify what was promoted or deployed. This object is available in API version 66.0 and later.")
- [DevopsPipelnStgProm](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_devopspipelnstgprom.htm "Represents a stage promotion in Lifecycle Center. Stage promotion moves one or more work items to the next stage in the pipeline. This object is available in API version 66.0 and later.")
- [DevopsRequestInfo](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_devopsrequestinfo.htm "Represents a specific request for a Lifecycle Center operation, such as a commit, deploy, promotion, rebase, or back sync, and tracks its overall status and outcome. This object is available in API version 66.0 and later.")