---
schema_version: "1"
id: 5f00825a8d0e87929069e4395d473ccb87336de84bd72576aab3942ccbfd6b3d
title: Async Job Status Invocable Action
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/comms_async_job_status_invocable_action.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.comms_async_job_status_invocable_action.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 989a6b45e464543855634178fbf3f201ea9898f5e000e9a302aff1c60b69d109
description: 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.
products:
  - Communications
release: "264"
---
# Async Job Status Invocable Action

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

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col style="width:100%"></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions</td></tr></tbody></table>

## 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

```json
{
  "inputs": [
    {
      "quoteId": "001Ij000002Okp2IAC"
     }
   ]
}
```

JSON Response Body

```json
[

    "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
  }

]
```