Log new Gmail emails to output

Utilities

What it does

When a new email arrives in Gmail, this automation logs the message to output for visibility. It parses the email content, loops through each item, and accumulates matching results to a test list.

Who it's for

Engineering teams who need to capture and process incoming Gmail messages for testing or monitoring.

Apps used

How teams use this

Monitor incoming emails for testing

Automatically log and parse new Gmail messages to capture test data. The team reviews the output list to verify email content without manual inspection of each message.

Filter emails by index position

Process only emails where the item index meets a condition, so duplicate or header rows are excluded from the test list. Add a condition check to refine which items are accumulated.

Route parsed emails to database

Send the accumulated test list to a database or data warehouse after parsing. The automation stays the same and only the final step changes to write records.

How it works

  1. Monitor for new email. A new email arrives in Gmail and starts this automation so the message can be logged and processed.
  2. Log message to output. Log the email message to output in Gmail so the event is recorded and visible for review and monitoring.
  3. Parse email content. Extract and parse the document from the email so each item can be processed individually in the loop.
  4. Check and accumulate items. Loop through each item in the message. When the index does not equal zero, accumulate that item to the test list.