Sync WooCommerce orders to Salesforce accounts and opportunities

UtilitiesCRMMarketingSales

What it does

When a new order is placed in WooCommerce after April 1, 2016, this automation searches Salesforce for the customer contact. If not found, it creates an account, contact, and opportunity, then adds a line item for each product.

Who it's for

Sales operations teams who need to sync WooCommerce orders into Salesforce without manual data entry.

How teams use this

Sync new WooCommerce orders to Salesforce

When someone places an order in WooCommerce, the customer and opportunity appear in Salesforce automatically. The sales team can follow up without re-entering order data.

Prevent duplicate customer records

The automation checks Salesforce for an existing contact before creating a new one. This keeps the database clean and ensures the sales team works from a single customer record.

Track product revenue by line item

Each product from the WooCommerce order becomes a line item on the Salesforce opportunity. The team can see exactly what was sold and forecast revenue by product.

Filter orders by date range

Only orders created after April 1, 2016 sync to Salesforce. Add or change the date condition to include only orders from a specific time period that matters to the business.

How it works

  1. Monitor for new orders. A new order is placed in WooCommerce on or after April 1, 2016, and this automation begins.
  2. Search for the customer contact. Search Salesforce for a contact with the order email address to avoid creating duplicate records in the database.
  3. Create account and contact if needed. When the email is not found in Salesforce, create an account and contact with the customer details from the WooCommerce order.
  4. Create opportunity and line items. Create an opportunity in Salesforce, then search for each product by its external ID and create a line item for every item in the order.