Sync Org Phase Gaps on schedule

Recipe ToolsMarketingData ParserUtilitiesDatabaseDeveloper ToolAPI Integration

What it does

When the clock triggers every 5 minutes, this automation parses CSV batches for data, states, and gaps. It loops through each line, checks for required fields, and parses JSON documents to keep org phase gaps in sync.

Who it's for

Data and analytics teams who need to sync organization phase gaps on a regular schedule without manual intervention.

How teams use this

Keep phase gaps current hourly

Run this automation every 5 minutes so org phase gaps are always in sync with the source CSV files. No manual refresh is needed and the data stays fresh.

Alert ops when gaps appear

Extend this automation to send a Slack message when VEGaps is present but Organization Phase ID is missing. Operations teams get notified of data quality issues right away.

Archive gaps to a database

Instead of posting to a Rest endpoint, write each parsed JSON document to a database table for historical tracking. The same CSV parsing and validation logic applies.

Filter gaps by phase type

Add a condition to only sync gaps where the phase type matches a specific value. This lets different teams use the same automation for their own phase categories.

How it works

  1. Start on a 5 minute schedule. Clock triggers this automation every 5 minutes so org phase gaps are checked and synced on a regular cadence.
  2. Parse CSV batches. Csv Parser processes three CSV batches containing data, states, and gaps so the automation can process each set separately.
  3. Create lists from batches. Build states and gaps lists from the parsed CSV batches to organize the data for comparison and validation.
  4. Parse JSON when fields match. For each line where VEGaps and Organization Phase ID are both present, Json Parser extracts the JSON document to sync the gap details.
  5. Send synced gaps to endpoint. Rest posts the parsed JSON data to the target endpoint so org phase gaps stay current across all connected systems.