---
sourceDocument: Australia Security Management
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/security-management

 Release :

    - australia

ft:locale :

    - en-US

ft:publication_title :

    - Australia Security Management

ft:clusterId :

    - security

bundleId :

    - security

workflow :

    - Technology


---

# Check Compliance Search Status Action

# Check Compliance Search Status Action {#ariaid-title1}

* Release version: Australia
* 
* Updated March 12, 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

The Check Compliance Search Status action check the status of created compliance search on exchange server and if the status is completed return the information regarding email search found for the compliance
search.

## Input variables {#search-delete-email-threat-exchange__section_alh_hfm_3z}

Input variables determine the initial behavior of the action.
{#search-delete-email-threat-exchange__table_pgm_tfy_jr__entry__2}

| Variable | Description |
|-|-|
| targetId | Mandatory target host identifier field where the Exchange Server is located. |
| searchName | Mandatory name of compliance search created on exchange server. |
[ ]

{#search-delete-email-threat-exchange__table_pgm_tfy_jr}

## Output variables {#search-delete-email-threat-exchange__section_cw4_gsb_v1b}

The output variables contain data that can be used in subsequent actions.
{#search-delete-email-threat-exchange__table_bnj_jfy_jr__entry__2}

| Variable | Description |
|-|-|
| response | Contains status of the compliance search and number of emails found on the exchange server for the compliance search. |
[Table 1. Output variables]

{#search-delete-email-threat-exchange__table_bnj_jfy_jr}

## Exit Conditions {#search-delete-email-threat-exchange__section_w4g_nsb_v1b}

Possible exit conditions for this action are:
{#search-delete-email-threat-exchange__table_x4g_nsb_v1b__entry__2}

| Variable | Description |
|-|-|
| Search In Progress | When status of compliance search is in progress. |
| Search Complete - No Threat Emails Found | When status of compliance search is completed, and no emails are found as a part of compliance search. |
| Search Complete - Threat Emails Found | When status of compliance search is completed, and emails are found as a part of compliance search. |
| Error Checking Status | When status checking fails due to exception in exchange server. |
| Error | When exception occurs in flow action. |
[Table 2. Exit Conditions]

{#search-delete-email-threat-exchange__table_x4g_nsb_v1b}

