Sync Shopify orders to Salesforce opportunities and line items

EcommerceCRMMarketingSales

What it does

When a new order is created in Shopify, this automation searches Salesforce for the customer contact and opportunity. It creates missing records and adds each line item from the order to the opportunity.

Who it's for

Sales operations teams who need Shopify orders to flow into Salesforce as opportunities without manual entry.

How teams use this

Sync Shopify orders to Salesforce automatically

New Shopify orders become Salesforce opportunities with all line items attached, so the sales team sees every order without manual data entry or spreadsheets.

Prevent duplicate customer records

The automation checks for existing contacts by email before creating new ones, so repeat customers do not spawn duplicate accounts in Salesforce.

Route orders by product type

Add a condition after line item creation to assign the opportunity to different sales teams based on the product external ID or category, so each team owns their deals.

Enrich opportunities with order totals

Include the order amount and shipping address from Shopify in the Salesforce opportunity record, so sales has full context without switching systems.

How it works

  1. Monitor for new Shopify orders. When a new order is created in Shopify after April 1, 2016, this automation starts and pulls the order details including customer email and line items.
  2. Search for the customer contact. Search Salesforce for a contact matching the Shopify customer email. If no contact exists, the automation creates an account and contact record.
  3. Create or find the opportunity. Create a new opportunity in Salesforce linked to the customer account, or use an existing one if the customer was already in the system.
  4. Add line items to the opportunity. For each product in the Shopify order, search Salesforce for a matching product by external ID and add it as a line item to the opportunity.