Sync qualified Marketo leads to Salesforce

DeveloperAPIMarketingUtilitiesEcommerceCRMSales

What it does

When a qualified lead arrives via Marketo webhook, this automation enriches the lead with Shopify order data and custom objects from Marketo, then creates it in Salesforce. Only leads with over 1000 in total Shopify spending are synced, and lead data is cached in the Lookup Table for future reference.

Who it's for

RevOps teams who want to sync high-value Marketo leads to Salesforce with enriched customer spending data.

How teams use this

Sync high-value customers to sales

When a lead has spent over 1000 in Shopify orders, this automation enriches their Marketo record with order history and custom objects, then creates them in Salesforce so the sales team can prioritize high-value prospects.

Route leads by spending tier

Extend this automation to check spending thresholds and route leads to different Salesforce queues based on customer lifetime value. Only high-value leads go to enterprise sales, while others go to standard sales.

Prevent duplicate syncs with caching

Use the Lookup Table to cache lead data and last synced dates so the same lead is not created twice in Salesforce. Check the cache before creating each lead.

Include product affinity in lead records

Add a step to filter Shopify orders by product category and set a product affinity field on the Salesforce lead based on what the customer bought most often.

How it works

  1. Receive qualified lead via webhook. A qualified lead arrives in real time through a Marketo webhook with the lead email address.
  2. Retrieve lead details from Marketo. Search Marketo for the full lead record using the email from the webhook to get more information than the trigger provided.
  3. Find Shopify orders by email. Search Shopify for all orders placed by that email address to calculate total customer spending and determine if the lead qualifies.
  4. Retrieve Marketo custom objects. Search Marketo for custom objects tied to the lead, such as Shopify order records, to enrich the lead data before syncing to Salesforce.
  5. Create lead in Salesforce with cache. Create the qualified lead in Salesforce with enriched data from Marketo and Shopify, then store the lead entry in the Lookup Table for future syncs.