Create Shopify order from Salesforce closed opportunity
CRMMarketingSalesEcommerce
What it does
When an opportunity reaches Closed Won in Salesforce and has no order number, this automation searches for the products, contacts, and customer details. It creates the customer in Shopify if needed, then creates the order so the sale syncs to the store.
Who it's for
Sales operations teams who need Closed Won opportunities to become Shopify orders without manual entry.
Apps used
How teams use this
Sync Closed Won deals to Shopify
When a sales rep marks an opportunity Closed Won in Salesforce, the order automatically appears in Shopify with the customer and line items. No manual order entry is needed.
Prevent duplicate customers in Shopify
The automation checks if the customer already exists in Shopify before creating a new one, so the same contact is not added twice across deals.
Add order number back to Salesforce
Include a step to update the opportunity with the Shopify order number so the record is linked and the automation does not run again on the same deal.
Filter by opportunity amount or type
Add a condition to only create Shopify orders for opportunities above a certain value or with a specific product type, so smaller or internal deals skip the sync.
How it works
- Detect a Closed Won opportunity. When an opportunity in Salesforce reaches Closed Won stage and has no order number, this automation starts and searches for the related products and contact roles.
- Gather opportunity products and contacts. Search Salesforce for the opportunity line items and opportunity contact roles so the order has the right items and customer information.
- Retrieve contact details. Search Salesforce for the contact record linked to the opportunity so the customer email and name are ready for Shopify.
- Check or create the Shopify customer. Search Shopify for the customer by email. If the customer does not exist, create them in Shopify with the contact details from Salesforce.
- Create the order in Shopify. Create the order in Shopify with the products, quantities, and customer from the opportunity so the sale is recorded in the store.