Use this action to verify whether an asynchronous job is already running for a specific quote. For example, you can prevent duplicate processing by checking job status before initiating a new quote calculation.
Required Editions
| Available in: Lightning Experience |
| Available in: Enterprise, Unlimited, and Developer Editions |
Input Values
| Parameter | Description | Data Type |
|---|---|---|
| quoteId | The ID of the quote used to check the status of asynchronous jobs. | String |
Output Values
| Parameter | Description | Data Type |
|---|---|---|
| operationStatus | The status of the operation, for example, success or failed. | String |
| isAsyncJobFound | Indicates whether any asynchronous job is running for the quote. | Boolean |
| esmAsyncJobDetails | The job name and the asynchronous job ID retrieved from the ESM_GetAsyncJobStatus integration procedure. | String |
| quoteCloneJobIds | A list of job IDs retrieved from the ESM_GetQuoteCloneStatus integration procedure. | List of String |
| apexBatchJobIds | A list of job IDs retrieved from the Apex batch job status check. | List of String |
| errorMessage | A message explaining why the process failed. | String |
Example
JSON Request
{
"inputs": [
{
"quoteId": "001Ij000002Okp2IAC"
}
]
}
JSON Response Body
[
"actionName": "B2BCmexAsyncJobStatusInvocable",
"errors": null,
"invocationId": null,
"isSuccess": true,
"outcome": null,
"outputValues": {
"asyncJobFound": true,
"error": null,
"status": "success",
"esmAsyncJobIds": ["a0YIj000000kJMRMA2","a0YIj000000kJMSMA2"],
"quoteCloneJobIds": ["0Q0xx000000ABCDEA4"],
"apexBatchJobIds": ["707xx00000ABCDE", "707xx00000ABCDf"]
},
"sortOrder": 0,
"version": 1
}
]