Get Original Email - Gmail v2

This v2 playbook uses the reporter's email headers to retrieve the original email. This decreases the number of tasks to retrieve the original email. Use this playbook to retrieve the original email using the Gmail integration, including headers and attachments. Note: You must have the necessary Google Apps Domain-Wide Delegation of Authority permissions in your Gmail service to execute global search.

Gmail · 8 tasks · 2 inputs · 10 outputs

Inputs

  • MessageID — The original email message ID to retrieve. Holds the value of the "Message-ID" header of the original email and not Gmail's internal ID of the message.
  • UserID — The email address of the authenticated user to fetch the original email for. For gmail, the authenticated user.

Outputs

  • Email — The email object
  • Email.To — The email recipient.
  • Email.From — The email sender.
  • Email.CC — The email CC address.
  • Email.BCC — The email BCC address.
  • Email.HTML — The HTML of the email.
  • Email.Body — The email text body.
  • Email.Headers — The email headers.
  • Email.Subject — The email subject.
  • File — The original attachments.

Commands used

gmail-get-attachments gmail-search

Flowchart

no yes yes yes Inputs-Exist Start Start Is Gmail enabled? - IsIntegrationAvailable Is Gmail enabled? IsIntegrationAvailable Done Done Retrieve the Original email from Gmail - gmail-search Retrieve the Original ema... gmail-search Was the original email retrieved? Was the original email re... Get attachments of the original email - gmail-get-attachments Get attachments of the or... gmail-get-attachments Set output - Set Set output Set Verify Playbook Inputs Verify Playbook Inputs