New customers flow to QuickBooks
What we will build#
| Card | Setting |
|---|---|
| Mapping | Account → Customer: Account Name to DisplayName and CompanyName, Phone, Website, Billing Email; QuickBooks ID stored in a QuickBooks Id field |
| Outbound | Created and Updated rules with one condition: Type starts with Customer; updates send only phone, website and email |
Step 1: Map Account to Customer#
- Create a text field QuickBooks Id (
QuickBooks_Id__c) on Account, and an email field Billing Email if you do not have one. - On QB Bridge Entities, pick Customer and open the Mapping card. In 1. Primary Salesforce Object choose Account.
- DisplayName is added for you. Click + Add Header Mapping Row for each other row below.
- In 3. QBO ID Storage, pick QuickBooks Id as the Main Entity ID Field and click Save Intelligent Mapping.
| QBO Field | Salesforce Field |
|---|---|
| DisplayName (required) | Account Name |
| CompanyName | Account Name |
| PrimaryPhone.FreeFormNumber | Phone |
| WebAddr.URI | Website |
| PrimaryEmailAddr.Address | Billing Email |

The Customer mapping: five rows from Account, and the QuickBooks Id field under QBO ID Storage.
Step 2: Send automatically, customers only#
- Build the Account Flows for create and update (how). Create the Sync to QuickBooks action on Account and add it to the layout (how).
- Click the Customer Outbound to QuickBooks card. In the Customer Trigger Rules window, Automatic sync options tab, switch On Salesforce Account Record Create to Enabled, click + Add Condition Row, set Account Type (
Type) Starts With Customer, and enter Logic Formula1. - Switch On Salesforce Account Record Update to Enabled and give it the same condition and formula (each section has its own). Under Mapped QuickBooks Fields to Update tick only PrimaryPhone.FreeFormNumber, WebAddr.URI and PrimaryEmailAddr.Address.
- Click Save Trigger.

The Create rule: one condition, Type Starts With Customer. The Update rule below it has the same condition.
Prove it#
| Check | What we did | Result |
|---|---|---|
| Prospects never go | Created Copperline Labs, Type Prospect | Nothing queued: no entry in its sync history |
| A rejected website | Created Bluebird Dental, Type Customer - Direct, website www.bluebirddental.example | Failed straight away, no retry: "QBO Sync Failed (400): Malformed Web Site Address format - Web Site URL does not have correct format…" |
| A new customer appears by itself | Corrected the website to https://www.bluebirddental.com and saved | QuickBooks customer 3298 created (an update of a never-synced record creates it); the Account's QuickBooks Id shows 3298; the failed entry now reads "Replaced by a later try" |
| A change updates, no duplicate | Changed Bluebird Dental's phone | Customer 3298 updated; still one Bluebird Dental in QuickBooks |

The Account after the tests: QuickBooks Id 3298 on the record, the customer in the QuickBooks data panel, and the sync history.
Variation: two customers with the same name
QuickBooks display names must be unique ("Duplicate Name Exists Error"). If you have two "Summit Medical" accounts, map DisplayName with a formula such as IF(ISBLANK(AccountNumber), Name, Name & " - " & AccountNumber).
Variation: only when key fields change
The Updated rule looks at every save of a customer account, but only changed fields are sent, and a save that changes no mapped field sends nothing. To start the Flow only when, say, the phone or website changes, add those as entry conditions in the Account update Flow ("Only when a record is updated to meet the condition requirements").
Where to next#
- Installers become vendors: the next request