Sync Mavenlink project CTA data to Snowflake

Recipe ToolsMarketingDatabaseUtilities

What it does

When a scheduled time arrives, this automation runs custom SQL in Snowflake to fetch Mavenlink project data. It compares records against a lookup table and logs results so the team can track matches and new entries.

Who it's for

Data and analytics teams who need to keep Mavenlink project information current in Snowflake without manual updates.

How teams use this

Keep Snowflake synced with Mavenlink

Run the SQL query every 5 minutes to pull the latest Mavenlink projects into Snowflake and log the results. The team sees all changes in one place without manual work.

Track new projects against existing records

Compare each Mavenlink project to the lookup table so the team knows which ones are new. The log report shows matches and gaps for reconciliation.

Alert when batch size exceeds threshold

Add a condition to check if more than 30 projects arrive in a single sync, then send a notification to the team. This requires setting the threshold value and a Slack or email step.

Archive old projects from the lookup table

Extend this automation to mark Mavenlink projects as archived in the lookup table when they no longer appear in Snowflake. Only active projects remain in the sync.

How it works

  1. Run every 5 minutes. This automation starts on a schedule every 5 minutes so Snowflake stays in sync with the latest Mavenlink project data.
  2. Fetch Mavenlink projects from Snowflake. Run custom SQL to retrieve Mavenlink project records and account names from Snowflake for comparison against existing entries.
  3. Search the CTA data lookup table. Query the lookup table for each Mavenlink project to identify which records already exist and which are new additions to track.
  4. Create a Mavenlink project list. Build a list of all Mavenlink projects retrieved from Snowflake so the team can review the full dataset and monitor changes over time.
  5. Log results to the job report. Record the sync outcome in the job report so the team has a complete audit trail of which records matched and which exceeded thresholds.