--- title: Create Compliance Search Action description: 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. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/security-management/get-email-details-from-exch-server.html release: australia topic_type: reference last_updated: "2026-03-12" reading_time_minutes: 1 breadcrumb: [Common Security Operations integration flows and orchestration activities, Security Operations Integration Reference, Security Operations common functionality, Security Operations] --- # Create Compliance Search Action 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. |