DeployCallbackContext Class

Represents context information for a deployment job.

Namespace

Metadata

Usage

After an asynchronous metadata deployment finishes, Salesforce provides an instance ofMetadata.DeployCallbackContext in an asynchronous call to your implementation of handleResult() in your Metadata.DeployCallback class.

Example

public void handleResult(Metadata.DeployResult result,
                         Metadata.DeployCallbackContext context) {
  // Check the callback job ID for the deployment
  Id jobId = context.getCallbackJobId();
  // ...process the results...
}

DeployCallbackContext Methods

The following are methods for DeployCallbackContext.

clone()

Makes a duplicate copy of the Metadata.DeployCallbackContext.

Signature

public Object clone()

Return Value

Type: Object

getCallbackJobId()

Gets the asynchronous Apex job ID for the callback job.

Signature

public Id getCallbackJobId()

Return Value

Type: Id