Sync PostgreSQL data to Gmail on new service call

Recipe ToolsDatabaseMarketingData ParserUtilitiesProductivitySales Enablement

What it does

When someone makes a new call to this automation, it queries PostgreSQL for rows in the eaiesb table. For each row, this automation parses the data and sends the details to Gmail so the information reaches the right inbox.

Who it's for

Data and analytics teams who need to route database records to email without manual exports.

How teams use this

Route database exports to email daily

Set this automation to run on a schedule so PostgreSQL records are parsed and emailed to a distribution list each day. The team receives fresh data without running manual queries.

Alert teams on new table entries

When new rows are inserted into the eaiesb table, this automation notifies the team by email as soon as data arrives. The parsing and send steps remain the same.

Filter records before sending

Add a condition after the query step to only parse and email rows that meet specific criteria, such as a status field or date range. This reduces noise and focuses on relevant records.

How it works

  1. Receive a new service call. A new call arrives for this automation in real time, starting this automation to fetch and distribute data.
  2. Query the eaiesb table. Select rows from the public.eaiesb table in PostgreSQL in batch mode so all matching records are retrieved at once.
  3. Parse each row as JSON. For each row returned, parse the JSON document in Json Parser to extract and structure the data for the email body.
  4. Send data to Gmail. Send an email via Gmail with the parsed row details so the recipient has the database information in their inbox.