DeployMessage Class

Represents result information for the deployment of a metadata component.

Metadata

Use DeployMessage to access detailed information about component deployments. Salesforce provides a list of DeployMessages for a completed deployment via the DeployDetails and DeployResults instances sent in the DeployCallback.handleResult() callback.

The following are properties for DeployMessage.

  • changed

    Determines whether the component was changed after deployment. If true, the component was changed as a result of the deployment. If false, the deployed component was the same as the corresponding component already in the org.

  • columnNumber

    Each component is represented by a text file. If an error occurs during deployment, this property represents the column of the text file where the error occurred.

  • componentType

    The metadata type of the component in the deployment.

  • created

    If true, the component was created as a result of the deployment. If false, the component was modified as a result of the deployment.

  • createdDate

    The date and time when the component was created as a result of the deployment.

  • deleted

    If true, the component was deleted as a result of the deployment. If false, the component was either new or modified as result of the deployment.

  • fileName

    The name of the file in the metadata archive used to deploy the component.

  • fullName

    Full name for the custom metadata component.

  • id

    ID of the component that was deployed.

  • lineNumber

    Each component is represented by a text file. If an error occurs during deployment, this field represents the line number of the text file where the error occurred.

  • problem

    If an error or warning occurred, this field contains a description of the problem that caused the deployment to fail.

  • problemType

    Indicates the problem type, for example, an error or warning.

  • success

    Indicates whether the component was successfully deployed (true) or not (false).

Determines whether the component was changed after deployment. If true, the component was changed as a result of the deployment. If false, the deployed component was the same as the corresponding component already in the org.

public Boolean changed {get; set;}

Type: Boolean

Each component is represented by a text file. If an error occurs during deployment, this property represents the column of the text file where the error occurred.

public Integer columnNumber {get; set;}

Type: Integer

The metadata type of the component in the deployment.

public String componentType {get; set;}

Type: String

If true, the component was created as a result of the deployment. If false, the component was modified as a result of the deployment.

public Boolean created {get; set;}

Type: Boolean

The date and time when the component was created as a result of the deployment.

public Datetime createdDate {get; set;}

Type: Datetime

If true, the component was deleted as a result of the deployment. If false, the component was either new or modified as result of the deployment.

public Boolean deleted {get; set;}

Type: Boolean

The name of the file in the metadata archive used to deploy the component.

public String fileName {get; set;}

Type: String

Full name for the custom metadata component.

public String fullName {get; set;}

Type: String

ID of the component that was deployed.

public Id id {get; set;}

Type: Id

Each component is represented by a text file. If an error occurs during deployment, this field represents the line number of the text file where the error occurred.

public Integer lineNumber {get; set;}

Type: Integer

If an error or warning occurred, this field contains a description of the problem that caused the deployment to fail.

public String problem {get; set;}

Type: String

Indicates the problem type, for example, an error or warning.

public Metadata.DeployProblemType problemType {get; set;}

Type: Metadata.DeployProblemType

Indicates whether the component was successfully deployed (true) or not (false).

public Boolean success {get; set;}

Type: Boolean

The following are methods for DeployMessage.

  • clone()

    Makes a duplicate copy of the Metadata.DeployMessage.

Makes a duplicate copy of the Metadata.DeployMessage.

public Object clone()

Type: Object