{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":44040,"path":"security-management/get-email-details-from-exch-server.md","title":"Create Compliance Search Action","bundle":null,"doc_type":null,"release":"australia","body":"\n# Create Compliance Search Action\n\nThe 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.\n\n## Input variables\n\nInput variables determine the initial behavior of the action.\n\n<table id=\"table_pgm_tfy_jr\"><thead><tr><th>\n\nVariable\n\n</th><th>\n\nDescription\n\n</th></tr></thead><tbody><tr><td>\n\nsearch\\_query\n\n</td><td>\n\nMandatory search query used to find emails in the Exchange Server across all mailboxes.\n\n</td></tr><tr><td>\n\nexchange Location\n\n</td><td>\n\nMandatory location field used to search across location defined. Values are:-   All\n-   Name of specific mailbox\n\n</td></tr><tr><td>\n\ntargetId\n\n</td><td>\n\nMandatory target host identifier field where the Exchange Server is located.\n\n</td></tr></tbody>\n</table>## Output variables\n\nThe output variables contain data that can be used in subsequent actions.\n\n|Variable|Description|\n|--------|-----------|\n|response|Name of the compliance search created.|\n\n## Exit Conditions\n\nPossible exit conditions for this action are:\n\n|Variable|Description|\n|--------|-----------|\n|Search Creation Failed|When search creation fails due to exception in exchange server.|\n|Search Created Successfully|When search creation is successful.|\n|Search Creation Failed due to a Parsing Error|When search creation fails due to parsing issue.|\n|Error|When exception occurs in flow action.|\n\n**Parent Topic:**[Common Security Operations integration flows and orchestration activities](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/security-management/common-wf-activities.md)\n\n"}}