DeployResult Class

Represents the results of a metadata deployment.

Metadata

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.

  • canceledBy

    ID of the user who canceled the queued deployment.

  • canceledByName

    Full name of the user who canceled the queued deployment.

  • checkOnly

    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.

  • completedDate

    Date and time for when the deployment process ended.

  • createdBy

    ID of the user who created the deployment job.

  • createdByName

    Full name of the user who created the deployment job.

  • createdDate

    Date and time the deployment job was first queued.

  • details

    Provides the details for components in a completed deployment.

  • done

    Indicates whether Salesforce finished processing the deployment.

  • errorMessage

    Message corresponding to the values in the errorStatusCode property, if any.

  • errorStatusCode

    If an error occurs during deployment, a status code is returned. The message corresponding to the status code is returned in the errorMessagefield property.

  • id

    ID of the deployment job.

  • ignoreWarnings

    Specifies whether a deployment continues, even if the deployment generates warnings.

  • lastModifiedDate

    Date and time of the last update for the deployment process.

  • messages

    A list of all the detail messages for a deployment.

  • numberComponentErrors

    The number of components that generated errors during the deployment.

  • numberComponentsDeployed

    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.

  • numberComponentsTotal

    The total number of components in the deployment. Use this value with the numberComponentsDeployed property to get an estimate of the deployment’s progress.

  • rollbackOnError

    Indicates whether any failure causes a complete rollback (true) or not (false) of the deployment.

  • startDate

    Date and time the deployment process began.

  • stateDetail

    Indicates which component is being deployed.

  • status

    Indicates the current state of the deployment.

  • success

    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.

  • clone()

    Makes a duplicate copy of the Metadata.DeployResult.

Makes a duplicate copy of the Metadata.DeployResult.

public Object clone()

Type: Object