Skip to main content

Get Original Email - Gmail v2

This Playbook is part of the Gmail Pack.#

Supported versions

Supported Cortex XSOAR versions: 6.0.0 and later.

This v2 playbook uses the reporter email headers to retrieve the original email. This decreases the amount of the tasks needed to retrieve the original email.

Use this playbook to retrieve the original email using Gmail integration, including headers and attachments.

You must have the necessary permissions in your Gmail service to execute global search: Google Apps Domain-Wide Delegation of Authority.

Dependencies#

This playbook uses the following sub-playbooks, integrations, and scripts.

Sub-playbooks#

This playbook does not use any sub-playbooks.

Integrations#

  • Gmail

Scripts#

  • Set
  • IsIntegrationAvailable

Commands#

  • gmail-search
  • gmail-get-attachments

Playbook Inputs#


NameDescriptionDefault ValueRequired
MessageIDThe 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.Optional
UserIDThe email address of the user for which to fetch the original email.Optional

Playbook Outputs#


PathDescriptionType
EmailThe email object.string
Email.ToThe recipient of the email.string
Email.FromThe sender of the email.string
Email.CCThe CC address of the email.string
Email.BCCThe BCC address of the email.string
Email.HTMLThe HTML of the email.string
Email.BodyThe text body of the email.string
Email.HeadersThe headers of the email.string
Email.SubjectThe subject of the email.string
FileThe original attachments.string

Playbook Image#


Get Original Email - Gmail v2