Create Compliance Search Action

reference australia Updated Sep 10, 2026 1 min read get-email-details-from-exch-server.md
Raw file servicenow.com

The Create Compliance Search action creates a compliance search for emails in the designated Exchange server(s) using the search queries defined and returns the name of compliance search created.

Input variables

Input variables determine the initial behavior of the action.

Variable

Description

search_query

Mandatory search query used to find emails in the Exchange Server across all mailboxes.

exchange Location

Mandatory location field used to search across location defined. Values are:- All

  • Name of specific mailbox

targetId

Mandatory target host identifier field where the Exchange Server is located.

## Output variables

The output variables contain data that can be used in subsequent actions.

Variable Description
response Name of the compliance search created.

Exit Conditions

Possible exit conditions for this action are:

Variable Description
Search Creation Failed When search creation fails due to exception in exchange server.
Search Created Successfully When search creation is successful.
Search Creation Failed due to a Parsing Error When search creation fails due to parsing issue.
Error When exception occurs in flow action.

Parent Topic:Common Security Operations integration flows and orchestration activities

Search documentation
Search document titles and file paths on the australia branch