⚙️ Gmail Inbox Messages - Pagination Workflow Formula By steve


Get your own emails from Gmail (including sender, labels, message contents, etc…) from the Official Gmail API. You can get your normal inbox back or add search terms to filter only emails from specific senders, labels, keyword matches, etc.

Getting Started

Import this formula to add 2 workflows into your account. You’ll need to begin execution on the (1/2) workflow, where it will prompt you for your Google OAuth Token. You can read the Gmail API Overview to learn more about getting started and how to get an API token you’ll need to access your emails with. You’ll want to use the Google OAuth Playground to get your API key with the https://www.googleapis.com/auth/gmail.readonly scope.

You can then enter an optional search term and then execute the workflow. Step 1 will get a list of the messages matching your search query, and when it’s finished it will pass the results on to step 2 which will then get the email content for each message (one by one) and aggregate the results together into a single CSV or JSON file you’ll then receive.

⚙️  Gmail Inbox Messages - Pagination (1/2)

Gmail Inbox Messages - Pagination Info (Self-Loop) Pagination Limit: 4 ➡️ Pagination Token

Used for pagination.

  • OAuth Access Token

    OAuth access token for the Gmail account owning the inbox you’d like to get the messages for. Get your own OAuth token using the Google OAuth Playground. We suggest using the https://www.googleapis.com/auth/gmail.readonly scope.

Pagination Token

Used for pagination.

Search Query

Search for messages in your inbox, from Google:

Only return messages matching the specified query. Supports the same query format as the Gmail search box. For example, "from:someuser@example.com rfc822msgid:<somemsgid@example.com> is:unread”. Parameter cannot be used when accessing the api using the gmail.metadata scope.

Extractors

  • Gmail Inbox Messages .messages
⚙️  Gmail Inbox Messages - Pagination (2/2)

Gmail Inbox Messages - Pagination (1/2) (External Trigger) Extractor: Gmail Inbox Messages messages.id ➡️ Message ID

Message ID

  • OAuth Access Token

    OAuth access token for the Gmail account owning the inbox you’d like to get the messages for. Get your own OAuth token using the Google OAuth Playground. We suggest using the https://www.googleapis.com/auth/gmail.readonly scope.

Format

How much detail to return about each message. Possible values are:

  • full
  • metadata
  • minimal
  • raw

Extractors

  • Gmail Message Contents .
Posted by steve on Feb. 27, 2020, 12:10 a.m. 🚩  Report

📱 Apps

🧪 Related Formulas