Sync Shopify orders to Salesforce with products

EcommerceCRMMarketingSales

What it does

When a new order is created in Shopify, this automation creates an order in Salesforce and attaches each product variant and the customer contact. Line items are added whether the variant exists or needs to be created first.

Who it's for

Sales operations teams who need Shopify orders synced to Salesforce with full product and customer details.

How teams use this

Sync orders for sales visibility

New Shopify orders flow into Salesforce with products and customer details attached, so the sales team sees the full order in one place without manual entry.

Route orders by product type

Extend this automation to check the product category and route the Salesforce order to the right sales team based on what was ordered.

Sync to a different CRM

Replace Salesforce with another CRM to sync Shopify orders there instead, keeping the same product and contact matching logic.

Log order sync status

Add a step to record whether each order synced successfully or failed, so the team can audit what made it to Salesforce and what did not.

How it works

  1. New order placed in Shopify. A new order is created in Shopify with order details, line items, and customer information.
  2. Create the order in Salesforce. Create a new order record in Salesforce with the order number, total amount, and order date from Shopify.
  3. Search for each product variant. For each line item, search Salesforce for the product variant using the Shopify Variant ID to check if it already exists.
  4. Create or link order line items. Add each product to the Salesforce order as a line item, creating the variant record first if the search found no match.
  5. Attach the customer contact. Search Salesforce for the customer contact by email and link it to the order so the sales team sees who placed it.