Sync Salesforce opportunity when order completes

Recipe ToolsCRMMarketingDeveloper Tool

What it does

When a new call arrives for opportunity update, this automation checks if the order status is complete and a bank name exists. It syncs the opportunity to Salesforce and updates customer email if it differs from the record on file.

Who it's for

Sales operations teams who need Salesforce opportunities to reflect completed orders without manual entry.

How teams use this

Sync completed orders to Salesforce

When an order reaches complete status with a valid bank name, push the opportunity and account details to Salesforce so the sales team sees the latest customer information without delay.

Update customer email on opportunity

If the incoming customer email differs from what Salesforce has on file, update the opportunity record with the correct email so follow-up communication reaches the right person.

Add validation for bank account data

Extend the automation to check that bank name and account details meet your data quality rules before syncing to Salesforce. Only sync records that pass validation.

Route opportunities by region

Retarget this automation to route completed opportunities to region-specific Salesforce queues based on the bill-to or sell-to address so the right team owns each deal.

How it works

  1. Receive opportunity update call. A new call for opportunity update arrives with order status, bank name, customer email, and other details from the source system.
  2. Extract and prepare variables. Workato Custom Code sets up account ID, bill-to, and sell-to variables from the incoming payload so they are ready for the next steps.
  3. Sync account and contact details. When order status is complete and a bank name is present, call the account contact sync flow to align customer data across systems.
  4. Update the Salesforce opportunity. When customer email differs from the email on file, update the Salesforce opportunity record with the new email and synced account details.