Search and Delete Threat Emails workflow The Security Incident Response-Get Threat Email Details and Delete workflow returns the number of threat emails from an Exchange Server search and lets you delete them. About this task The search query can take some time to complete. Once the count is received, approval is required to delete emails from an Exchange email server. This workflow is triggered by the Delete from Exchange button on the Exchange Search form in the security incident when the Query result is set to Return count. Workflow process activities: Runs a script to fetch a search query from all associated active search criteria records to run on the Exchange Server using the Search/Delete Threat Email in Exchange activity. Runs a script to create search results from the previous step Field Value Action Search for Delete Result type Count Email count Integer (Total number of emails found) Search Query Query text string run on the Exchange Server Email date received N/A Email read status N/A Recipient N/A Search date Timestamp for when the workflow ran Approval - User: Note: Users with sn_si.admin roles are automatically added as approvers. If any one admin approves, the workflow continues. Runs a script to add a work note to all associated security incidents when approval is requested and when request is approved or rejected. Deletes emails upon approval using the Search/Delete Threat Email in Exchange activity Creates an Exchange Search Results record as follows: Adds a work note to all associated security incidents with deletion result. Logs Message: Note: Any PowerShell script errors are recorded in the system logs.