Create Shopify order and relate customer in Salesforce

EcommerceCRMMarketingSales

What it does

When a new order arrives in Shopify, this automation searches Salesforce for a matching contact by email. If the contact does not exist, it creates one, then searches for the order and creates it if needed so both records sync to Salesforce.

Who it's for

Sales operations teams who need Shopify orders and customers synced to Salesforce automatically.

How teams use this

Sync new Shopify orders to Salesforce

Every new order from Shopify creates a matching record in Salesforce with the customer attached, so the sales team sees all orders in one place without manual entry.

Prevent duplicate customer records

Search by email before creating a contact so repeat customers do not get added twice. This keeps the Salesforce database clean and accurate.

Add phone number to synced contacts

Include a phone field in the contact creation step so Salesforce contacts have both email and phone from Shopify. This requires adding the phone number to the create contact step.

Route orders by region or product

Add a condition after order creation to check product type or shipping region and assign the order to the right sales team. This requires a routing rule based on order attributes.

How it works

  1. Monitor for new Shopify orders. A new order is placed in Shopify and this automation searches Salesforce to find or create matching records for the customer and order.
  2. Search Salesforce for the contact. Search Salesforce contacts by the order email address to see if that customer already exists in the system.
  3. Create contact if missing. When the email is not found, create a new Salesforce contact with the customer details from the Shopify order.
  4. Search Salesforce for the order. Search Salesforce for an order record matching the Shopify order ID to avoid creating a duplicate in the system.
  5. Create order and link customer. When the order ID is not found, create the Shopify order in Salesforce and relate it to the contact so both records are connected.