Get Email Details from Exchange Server activity

The Get Email Details from Exchange Server activity searches for email in message tracking report on an Exchange Server and retrieves their details.

The Get Email Details from Exchange Server activity can be used with any workflow to search for email on an Exchange Server and return its details.

Table 1. Input variables
Variable Description
targetid [string] Mandatory target host identifier field where the Exchange Server is located.
search_query [string] Mandatory query used to find email details.

Execution Command

Table 2. Execution Command
Script Description
GetExchangeEmailDetails.ps1 MID Server Script file.

A script with PowerShell commands that executes on the Exchange server.

Output variables

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

Table 3. Output variables
Variable Description
response [string] Email details retrieved for each of the email found for the given search query.

Exit Conditions

Possible exit conditions for this activity are:

Table 4. Conditions
Condition Description
No emails found When the email count is zero, no emails were found for the given search query.
Emails found When the email count is greater than zero, emails were found for the given search query.
Error executing in Exchange When an error occurred while executing search/delete of emails in the Exchange Server.