Get Original Email - Microsoft Graph Mail

This playbook retrieves the original email using the Microsoft Graph Mail integration. Note: You must have the necessary permissions in the Microsoft Graph Mail integration as described in the [message-get API](https://docs.microsoft.com/en-us/graph/api/message-get) and the [user-list-messages API](https://docs.microsoft.com/en-us/graph/api/user-list-messages)

Microsoft Graph Mail · 8 tasks · 3 inputs · 1 output

Inputs

  • UserID — The email address of the reporting user.
  • MessageID — The InReplyTo header in the forwarded email.
  • PagesToPull — The number of pages of emails to return (maximum is 10 emails per page).

Outputs

  • File — The original email as an EML file.

Commands used

msgraph-mail-get-email-as-eml msgraph-mail-list-emails

Flowchart

yes Yes yes Start Start Done Done Is Microsoft Graph Mail enabled? - IsIntegrationAvailable Is Microsoft Graph Mail e... IsIntegrationAvailable Search for messages by encoded MessageID - msgraph-mail-list-emails Search for messages by en... msgraph-mail-list-emails Was a matching email found? Was a matching email found? Get original email - msgraph-mail-get-email-as-eml Get original email msgraph-mail-get-email-as-eml Verify required inputs Verify required inputs Set EncodedMessageID - Set Set EncodedMessageID Set