Sync Salesforce Products with Xero Items

CRMMarketingSalesAccounting

What it does

When a product is created or updated in Salesforce, this automation searches Xero for a matching item. It creates the item in Xero if none exists, or updates the existing item with the latest product data from Salesforce.

Who it's for

Accounting teams who need Salesforce products synced to Xero without manual entry or duplicate records.

How teams use this

Keep Xero items current with Salesforce

When a product price or name changes in Salesforce, the Xero item updates automatically so invoices always reflect the latest data. No manual sync is needed.

Prevent duplicate items in Xero

Search Xero before creating an item so the same product is never added twice. Updates go to the existing record instead of creating a new one.

Route products by category to different accounts

Add a condition to check the product category in Salesforce and assign it to different Xero account codes based on type. Only products in certain categories sync to specific accounts.

Sync only products above a price threshold

Include a filter so only products with a price above a set amount are synced to Xero. Lower-priced items stay in Salesforce and do not clutter the accounting system.

How it works

  1. Monitor for new or updated products. Detect when someone creates or updates a product in Salesforce, and check that the product is marked active before proceeding with the sync.
  2. Retrieve the standard price book. Search Salesforce for price books and retrieve the standard price book ID so the product pricing can be matched to Xero items.
  3. Find the price book entry. Search Salesforce for the price book entry linked to the product so the pricing data is available for the Xero item.
  4. Search for the item in Xero. Search Xero for an existing item that matches the Salesforce product so a duplicate is not created in the accounting system.
  5. Create or update the item. Create a new item in Xero with the product data and account code if no match exists, or update the existing item with the latest information from Salesforce.