Get Email Details from Exchange Server activity The Get Email Details from Exchange Server activity performs a search for emails in the designated Exchange server(s) using the search queries defined, and returns details from the subject, recipient, and sender parameters. Input variables Input variables determine the initial behavior of the activity. Variable Description targetId Mandatory target host identifier field where the Exchange Server is located. search_query Mandatory search query used to find emails in the Exchange Server across all mailboxes. Output variables The output variables contain data that can be used in subsequent activities. Table 1. Output variables Variable Description response Email details retrieved for each email found for the given search query. Exit Conditions Possible exit conditions for this activity are: Table 2. Exit Conditions Variable Description No emails found When the email count is zero, no emails were found for the given search query. Threat emails found When the email count is greater than zero, and email details were returned for the given search query. Error executing at exchange When an error occurred while executing the powershell script in the Exchange Server.