DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!
Let us know so we can improve!
Contains the ID of a deployment or retrieval. In API version 28.0 and earlier, contains status information of any asynchronous metadata call.
In API version 31.0, the process of retrieving metadata has been simplified and retrieval properties have been moved to RetrieveResult. Also, the asynchronous create(), update(), and delete() calls have been removed. Therefore, only the id field in AsyncResult is used. The id field is the ID of a deployment or retrieval.
These asynchronous calls can return AsyncResult.
AsyncResult has this field that’s in use.
All fields in AsyncResult other than id are deprecated as of API version 31.0. These fields exist but are no longer in use.
donemessagestatestatusCodeIn API version 29.0, Salesforce moved several properties from the AsyncResult object to the DeployResult object and added several new ones, to improve the process for getting information about deployments. For more information about these changes, see deploy().
In API versions 29.0 and 30.0, AsyncResult is returned by the same asynchronous calls as in API version 28.0 and earlier, but it has different fields.
true) or not (false).Type: AsyncRequestState (enumeration of type string)
Description: Required. The AsyncRequestState object has one of four possible values.
Queued: This call hasn’t started. It’s waiting in a queue.InProgress: This call has started but hasn’t been completed.Completed: This call has been completed.Error: An error occurred. See the statusCode for more information.create(), update(), or delete() call, a status code is returned, and the message that corresponds to the status code is returned in the message field. For a description of each StatusCode value, see StatusCode in the SOAP API Developer Guide.In API version 28.0 and earlier, these asynchronous calls can return AsyncResult.
Use the checkStatus() call against each object to discover when the call is completed for that object. Salesforce updates each AsyncResult object as the call is completed or when errors occur.
Similarly, the deploy() and retrieve() calls use AsyncResult, though you must subsequently use checkDeployStatus() or checkRetrieveStatus() respectively to get more status information for the deployment or retrieval.
AsyncResult has the following fields.
true) or not (false). A check-only deployment doesn’t deploy any components or change the organization in any way. deploy() call.true) or not (false).Type: AsyncRequestState (enumeration of type string)
Description: Required. The AsyncRequestState object has one of four possible values.
Queued: This call hasn’t started. It’s waiting in a queue.InProgress: This call has started but hasn’t been completed.Completed: This call has been completed.Error: An error occurred. See the statusCode for more information.create(), update(), delete(), or deploy() call, a status code is returned, and the message that corresponds to the status code is returned in the message field. For a description of each StatusCode value, see StatusCode in the SOAP API Developer Guide.