DeployResult Class
Represents the results of a metadata deployment.
After an asynchronous metadata deployment finishes, Salesforce provides an instance of Metadata.DeployResult in a call to your implementation of handleResult() in your Metadata.DeployCallback class.
The following are properties for DeployResult.
-
ID of the user who canceled the queued deployment.
-
Full name of the user who canceled the queued deployment.
-
Indicates whether the deployment checked only the validity of the deployed files without making changes in the org. A check-only deployment does not deploy components or change the org in any way.
-
Date and time for when the deployment process ended.
-
ID of the user who created the deployment job.
-
Full name of the user who created the deployment job.
-
Date and time the deployment job was first queued.
-
Provides the details for components in a completed deployment.
-
Indicates whether Salesforce finished processing the deployment.
-
Message corresponding to the values in the
errorStatusCodeproperty, if any. -
If an error occurs during deployment, a status code is returned. The message corresponding to the status code is returned in the
errorMessagefieldproperty. -
ID of the deployment job.
-
Specifies whether a deployment continues, even if the deployment generates warnings.
-
Date and time of the last update for the deployment process.
-
A list of all the detail messages for a deployment.
-
The number of components that generated errors during the deployment.
-
The number of components deployed in the deployment process. Use this value with the
numberComponentsTotalproperty to get an estimate of the deployment’s progress. -
The total number of components in the deployment. Use this value with the
numberComponentsDeployedproperty to get an estimate of the deployment’s progress. -
Indicates whether any failure causes a complete rollback (true) or not (false) of the deployment.
-
Date and time the deployment process began.
-
Indicates which component is being deployed.
-
Indicates the current state of the deployment.
-
Indicates whether the deployment was successful (true) or not (false).
ID of the user who canceled the queued deployment.
public String canceledBy {get; set;}
Type: String
Full name of the user who canceled the queued deployment.
public String canceledByName {get; set;}
Type: String
Indicates whether the deployment checked only the validity of the deployed files without making changes in the org. A check-only deployment does not deploy components or change the org in any way.
public Boolean checkOnly {get; set;}
Type: Boolean
Date and time for when the deployment process ended.
public Datetime completedDate {get; set;}
Type: Datetime
ID of the user who created the deployment job.
public String createdBy {get; set;}
Type: String
Full name of the user who created the deployment job.
public String createdByName {get; set;}
Type: String
Date and time the deployment job was first queued.
public Datetime createdDate {get; set;}
Type: Datetime
Provides the details for components in a completed deployment.
public Metadata.DeployDetails details {get; set;}
Type: Metadata.DeployDetails
Indicates whether Salesforce finished processing the deployment.
public Boolean done {get; set;}
Type: Boolean
Message corresponding to the values in the errorStatusCode property, if any.
public String errorMessage {get; set;}
Type: String
If an error occurs during deployment, a status code is returned. The message corresponding to the status code is returned in the errorMessagefield property.
public String errorStatusCode {get; set;}
Type: String
For a description of each status code value, see Core Data Types Used in API Calls in the SOAP API Developer Guide.
ID of the deployment job.
public Id id {get; set;}
Type: Id
Specifies whether a deployment continues, even if the deployment generates warnings.
public Boolean ignoreWarnings {get; set;}
Type: Boolean
Date and time of the last update for the deployment process.
public Datetime lastModifiedDate {get; set;}
Type: Datetime
A list of all the detail messages for a deployment.
Removed in API version 29.0 and later.
public List<Metadata.DeployMessage> messages {get; set;}
Type: List<Metadata.DeployMessage>
The number of components that generated errors during the deployment.
public Integer numberComponentErrors {get; set;}
Type: Integer
The number of components deployed in the deployment process. Use this value with the numberComponentsTotal property to get an estimate of the deployment’s progress.
public Integer numberComponentsDeployed {get; set;}
Type: Integer
The total number of components in the deployment. Use this value with the numberComponentsDeployed property to get an estimate of the deployment’s progress.
public Integer numberComponentsTotal {get; set;}
Type: Integer
Indicates whether any failure causes a complete rollback (true) or not (false) of the deployment.
public Boolean rollbackOnError {get; set;}
Type: Boolean
Date and time the deployment process began.
public Datetime startDate {get; set;}
Type: Datetime
Indicates which component is being deployed.
public String stateDetail {get; set;}
Type: String
Indicates the current state of the deployment.
public Metadata.DeployStatus status {get; set;}
Type: Metadata.DeployStatus
Indicates whether the deployment was successful (true) or not (false).
public Boolean success {get; set;}
Type: Boolean
The following are methods for DeployResult.
-
Makes a duplicate copy of the
Metadata.DeployResult.
Makes a duplicate copy of the Metadata.DeployResult.
public Object clone()
Type: Object