New Email

Trigger a flow when you receive a new email. For more information, refer to Gmail's documentation.

Unless otherwise indicated, field types are text. Note that senders and recipients are formatted as - Name <email@email.com>.

Output

  • Email

    • Message ID: unique ID of the message

    • Thread ID: unique ID of the message thread (new, non-threaded messages have the same message and thread IDs)

    • To: recipient of the email

    • From: sender of the email

    • Text Body: text in the body of the message

    • HTML Body: HTML formatted body of the message

    • CC(list of text): list of carbon copied recipients

    • BCC(list of text): list of blind carbon copied recipients

    • Labels(list of text): list of categories attributed to the message (for example, Unread, Important, or Category_Personal)

    • Attachment IDs(list of text): list of unique IDs of the email attachments

      • filename: name of the attachment

      • attachmentID: unique ID of the attachment

      • messageID: Message ID of the email (see above)

      • type: file type (for example, .png or .jpeg)

See Also

Gmail connector

About the elements of Okta Workflows

Gmail API documentation