Newer Version Available
DeployCallback Interface
Namespace
Usage
You must provide a callback class for the asynchronous deployment of custom metadata through Apex. This class must implement the Metadata.DeployCallback interface.
Salesforce calls your DeployCallback.handleResult() method asynchronously once the queued deployment completes. Because the callback is called as asynchronous Apex after deployment, there may be a brief period where the deploy has completed, but your callback has not been called yet.
DeployCallback Methods
The following are methods for DeployCallback.
handleResult(var1, var2)
Signature
public void handleResult(Metadata.DeployResult var1, Metadata.DeployCallbackContext var2)
Parameters
- var1
- Type: Metadata.DeployResult
- The results of the asynchronous deployment.
- var2
- Type: Metadata.DeployCallbackContext
- The context for the queued asynchronous deployment job.
Return Value
Type: void