Contact is existing in Salesforce without Xero external id, same customer exists in Xero

Contact is existing in Salesforce without Xero external id, same customer exists in Xero

This article provides a solution to manage existing customers in Xero and existing customer in Salesforce without external id

1. Salesforce → Xero (Recommended Flow) 

Salesforce is recommended as the source of truth, where invoices and bills are created in Salesforce and sent to Xero using SFX. 


Follow the scenario as applicable in your organisation
 
a. Account & Contact Matching 

  • While creating an invoice or bill from Salesforce to Xero: 

  • Account is mandatory. 
  • Contact is optional. 

  • Both Account and Contact object contain the XeroExternalId field. 

  • If XeroExternalId is populated, SFX matches this ID with Xero and creates the invoice under the corresponding Xero contact. 

b. Matching via Contact Email 

  • If XeroExternalId is empty but a Contact is provided in Salesforce: 

  • SFX attempts to match the Salesforce Contact Email with the Xero Contact Email. 

  • If a match is found, the invoice is created under the matched Xero contact. 

c. Matching via Account Name 

  • If no contact is provided or the email does not match: 

  • SFX attempts to match the Salesforce Account Name with an existing Xero Contact Name. 

  • If a match is found, the invoice is created under the matched Xero contact. 

d. Creating a New Xero Contact 

  • If none of the above matching methods succeed: 

  • SFX creates a new contact in Xero. 
  • The invoice is linked to the newly created contact. 
  • The generated XeroExternalId is written back to the related Salesforce Account and Contact records to avoid duplicates in the future. 

Note 
  • If the XeroExternalId is already matched and the Salesforce Contact email is updated later: 

  • SFX will not overwrite the existing Xero email 

  • Unless the required email mapping fields are explicitly enabled (see screenshot below)





    • Related Articles

    • How to locate the Xero External ID for a contact / customer

      There are two ways to locate Xero External Id for a contact/customer Method 1: Download Xero contacts via SFX (Recommended for Bulk) In Salesforce, go to SFX → Xero → Tax / Branding. Click on Download Xero Contacts. This will download a file ...
    • Contact mapping from Xero contact to Salesforce

      This topic explains how to map existing Salesforce accounts with Xero Contacts Go to Xero Tax / Branding tab Download the contact csv from Xero Download accounts/contacts from Salesforce Map Xero external ids with the appropriate salesforce ...
    • How to identify the Xero External Id on a Customer record

      You can identify the Xero external id related to the different Xero orgs under the Account's related list Both Xero external id and Xero org id is listed here Note: Use this information to pass to the Xero Custom Object mapping record for Invoice ...
    • Will Account and Contacts from Salesforce sync with xero Customers

      Yes, Accounts and Contacts from Salesforce sync from Salesforce to xero when an Invoice is created. You can also manually sync the customers in Xero by importing via data loader. Please note to include the XeroId as the external Id when you upload ...
    • Salesforce to Xero – Invoice History Notes Sync

      This article explains how Notes or History records created in Salesforce can be synced and displayed in Xero against an invoice. Flow Configuration Steps Step 1: Create Record Triggered Flow Navigate to Setup → Flows Click New Flow Select Record ...