Environment (sf_devops__Environment__c)

Represents a connection from DevOps 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 all orgs that have DevOps Center installed.

As DevOps Center grows to support additional types of promotions in the Salesforce ecosystem, this object might change. For example, current fields that are specific to orgs might migrate to a new org-centric custom object. And additional custom objects might be created to represent MuleSoft, Tableau, and so on.

Note

Supported Calls 

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

Fields 

FieldTypePropertiesDescription
NamestringCreate, Defaulted on create, Filter, Group, idLookup, Nillable, Sort, UpdateName of this Environment record.
sf_devops__Can_Track_Changes__cbooleanCreate, Defaulted on create, Filter, Group, Sort, UpdateIf true, specifies that the org that this environment references has source tracking enabled. The default value is false.
sf_devops__Expired__cbooleanCreate, Defaulted on create, Filter, Group, Sort, UpdateIf true, specifies that the org that this environment references has expired. Examples of expired orgs include deleted or expired scratch orgs, or sandboxes that have been refreshed. The default value is false.
sf_devops__Last_Revision_Counter__cdoubleCreate, Filter, Nillable, Sort, UpdateThe last revision counter that was pulled from the org that this environment references. DevOps Center uses this value to ensure that it doesn’t pull duplicate records from Source Member Reference.
sf_devops__Named_Credential__cstringCreate, Filter, Group, Nillable, Sort, UpdateName of the named credential that DevOps Center uses to connect to the org referenced by this environment.
sf_devops__Operation_Result__creferenceCreate, Filter, Group, Nillable, Sort, UpdateReference to the Async Operation Result record for the current ongoing operation associated with this environment. DevOps Center sets this value when the operation begins and clears it when the operation terminates. This field is a relationship field. Relationship name: sf_devops__Operation_Result__r. Relationship type: Lookup. Refers to: sf_devops__Async_Operation_Result__c.
sf_devops__Org_Id__cstringCreate, Filter, Group, idLookup, Sort, UpdateThe 15-character ID of the Salesforce org that this environment is connected to. DevOps Center connects to an org using a URL. When it connects, it compares its org ID with the value in this field. If the two IDs differ, DevOps Center determines that the connected org is a sandbox that has been refreshed.
sf_devops__Project__creferenceCreate, Filter, Group, SortReference to the project of this environment. This field is a relationship field. Relationship name: sf_devops__Project__r. Relationship type: Master-detail. Refers to: sf_devops__Project__c.
sf_devops__Refresh_Date__cdateTimeCreate, Filter, Nillable, Sort, UpdateDate and time that this sandbox was refreshed from its parent. DevOps Center uses this field and Refresh Source to determine which work items are missing from a recently swapped environment (sandbox).
sf_devops__Refresh_Source__creferenceCreate, Filter, Group, Nillable, Sort, UpdateReference to the environment in DevOps Center that this sandbox was cloned from. DevOps Center uses this field and Refresh Date to determine which work items are missing from a recently swapped environment (sandbox). This field is a relationship field. Relationship name: sf_devops__Refresh_Source__r. Relationship type: Lookup. Refers to: sf_devops__Environment__c.
sf_devops__Replaces__creferenceCreate, Filter, Group, Nillable, Sort, UpdateReference to the environment that this environment replaces. This field is a relationship field. Relationship name: sf_devops__Replaces__r. Relationship type: Lookup. Refers to: sf_devops__Environment__c.
sf_devops__Test_Environment__cbooleanCreate, Defaulted on create, Filter, Group, Sort, UpdateIf true, specifies that DevOps Center uses test.salesforce.com to log in to the org. If false, DevOps Center uses login.salesforce.com. The default value is true.

See Also