Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
DeployResult Class
Namespace
Usage
Example
1public void handleResult(Metadata.DeployResult result,
2 Metadata.DeployCallbackContext context) {
3 if (result.status == Metadata.DeployStatus.Succeeded) {
4 // Deployment was successful
5 } else {
6 // Deployment was not successful
7 }
8}DeployResult Properties
The following are properties for DeployResult.
checkOnly
Signature
public Boolean checkOnly {get; set;}
Property Value
Type: Boolean
details
Signature
public Metadata.DeployDetails details {get; set;}
Property Value
Type: Metadata.DeployDetails
errorStatusCode
Signature
public String errorStatusCode {get; set;}
Property Value
Type: String
For a description of each status code value, see Core Data Types Used in API Calls in the SOAP API Developer Guide.
lastModifiedDate
Signature
public Datetime lastModifiedDate {get; set;}
Property Value
Type: Datetime
messages
Signature
public List<Metadata.DeployMessage> messages {get; set;}
Property Value
Type: List<Metadata.DeployMessage>
numberComponentErrors
Signature
public Integer numberComponentErrors {get; set;}
Property Value
Type: Integer
numberComponentsDeployed
Signature
public Integer numberComponentsDeployed {get; set;}
Property Value
Type: Integer
numberComponentsTotal
Signature
public Integer numberComponentsTotal {get; set;}
Property Value
Type: Integer
status
Signature
public Metadata.DeployStatus status {get; set;}
Property Value
Type: Metadata.DeployStatus