Cloud Workflow
Raise an IssueJoin Community
  • Getting Started
    • Introduction
    • Integration Basics
    • Sign Up and Get a License
    • Features and Benefits
  • DBSync Platform
    • Core Components
    • System Requirements
    • AppCenter
      • Company and User Management
    • Development Studio
    • Security Features
  • iPaaS
    • Home
    • Apps
    • Extend
      • Functions
    • Administration
      • User & Role Management
    • Logs
    • Remote Agent
    • Published Templates
  • Create your Workflow
    • Project
    • Task
    • Flow Builder
      • Standard Functions
    • Actions
      • Flow
      • Variable
      • Transform and Write
      • SQL
      • Restructure
      • Query
      • Debug
      • ReST
      • Conditions
        • If (Condition)
        • For (Loop)
      • Storage
        • Dropbox
        • File
        • CSV
        • Google Drive
        • FTP
        • S3
      • Flow Management
        • Flow
        • Logs
        • Notification
        • Schedule
        • API
        • Webhook
        • Forms
    • Configuring DBSync Environment
  • Connectors
    • Amazon S3
    • Authorize.NET
    • ChannelAdvisor
    • Database
    • Dropbox
    • FTP
    • Google Drive
    • Google Sheets
    • HubSpot
    • JIRA Cloud
    • JIRA Service Management
    • Linnworks
      • Creating the DBsync Application on Linnworks Developer Instance
    • Mailchimp
    • Microsoft Dynamics 365 Business Central
    • Microsoft Dynamics 365 Finance and Operations (D365 F&O)
    • Microsoft Dynamics CRM Online
    • Microsoft Dynamics GP
    • Microsoft Dynamics NAV
    • monday.com
    • Narvar
    • NetSuite
      • NetSuite Connector Settings
    • OpenAPI
    • PointClickCare
    • QuickBooks Desktop
    • QuickBooks Online
    • Sage Intacct
    • Salesforce
    • ShipStation
    • Shopify
    • SkuVault
    • WooCommerce
  • Template Library
    • Salesforce to QuickBooks Online Order to Cash
    • Salesforce to QuickBooks Desktop Order to Cash
    • Salesforce to FTP Integration
    • QuickBooks Online to Salesforce Accounts Receivable
    • QuickBooks Desktop to Salesforce Accounts Receivable
    • QuickBooks Online to Business Central Integration
    • QuickBooks Online to ShipStation Orders
    • QuickBooks Desktop to Shipstation Orders
    • QuickBooks Desktop to monday.com Integration
    • QuickBooks Online to monday.com Integration
    • Shopify to QuickBooks Online
    • Shopify to QuickBooks Desktop
    • Linnworks Orders to QuickBooks Online
    • Linnworks Orders to QuickBooks Desktop
    • Linnworks to Salesforce Integration
    • Salesforce Litify and QuickBooks Online
    • Salesforce Litify and QuickBooks Desktop
    • HubSpot to QuickBooks Online Order to Cash
    • HubSpot to QuickBooks Desktop Order to Cash
    • SkuVault Orders to QuickBooks Desktop
    • SkuVault Orders to QuickBooks Online
    • SkuVault and Salesforce
    • ChannelAdvisor Orders and Salesforce
    • ChannelAdvisor and QuickBooks Online
    • ChannelAdvisor and QuickBooks Desktop
    • Shopify Orders to Dynamics365 CRM
    • Shopify Orders to Salesforce
    • ShipStation to Dynamics 365 CRM
    • ShipStation Orders to Salesforce
    • ShipStation to QuickBooks Online Orders
    • ShipStation to QuickBooks Desktop
    • Target Recruit to QuickBooks Online
    • Target Recruit to QuickBooks Desktop
    • QuickBooks Online to Database
    • QuickBooks Desktop to Database
  • Troubleshooting
    • Common Errors & Fixes
    • Adding Trusted IP Address in Salesforce
    • Installing QuickBooks Web Connector
    • QuickBooks to Salesforce Data Migration
    • Setting Password in QuickBooks Web Connector
    • Starting QuickBooks Web Connector
    • Update Salesforce Password & Security Token in DBSync
  • Additional Resources
    • Billing Information - Auto Renewal
  • Tutorials
    • Salesforce and QuickBooks
      • Account Hierarchy in Salesforce and QuickBooks
      • Account Owner Mapping
      • Resolving Email Fields Sync Issues in QuickBooks Online
      • Mulitple Price Levels in Salesforce QuickBooks Integration
      • Multicurrency in QuickBooks to Salesforce Integration
      • Multicurrency in Salesforce - QuickBooks Desktop Integration
      • Multicurrency in Salesforce QuickBooks Online Integration
      • Product Hierarchy in QuickBooks and Salesforce
      • QuickBooks Data Extraction Queries
      • QuickBooks File Backup and Recovery Process
      • QuickBoooks Reports to Salesforce Integration
      • Recurring Transactions to Accounting System
      • Retrieve Value from custom Field of QuickBooks Online
      • Salesforce Opportunity to QuickBooks - Disabling Jobs
      • Salesforce QuickBooks Custom Mappings
        • Use Case
      • Salesforce QuickBooks Integration with Multiple QuickBooks
      • Syncing Standard Group Line Items in QuickBooks Desktop
    • Using Date Function in DBSync Integration
    • Salesforce and Database
      • Database to Salesforce Integration
    • Database to Database
      • Database to Database Integration
Powered by GitBook
On this page
  • Integration from QuickBooks to Salesforce
  • Integration from Salesforce to QuickBooks
  1. Tutorials
  2. Salesforce and QuickBooks

Product Hierarchy in QuickBooks and Salesforce

PreviousMulticurrency in Salesforce QuickBooks Online IntegrationNextQuickBooks Data Extraction Queries

Last updated 1 month ago

Integration from QuickBooks to Salesforce

If you use the Product Hierarchy in QuickBooks, then Salesforce needs to be updated to support the Product Hierarchy. Let's say DBSync is the parent item for the SalesForce to QuickBooksDesktop and SalesForce to QuickBooksOnline items. Now, if you generate an invoice in QuickBooks with DBSync and SF2QuickBooks, the Item name for DBSync remains DBSync, but for SF2QuickBooks, it is shown as DBSync: SF2QuickBooks. If this invoice is moved to Salesforce Opportunity, then, the product is migrated with the parent Name into Salesforce.

  1. To make changes, go to . Enter your Username and Password. Then, click on Login.

NOTE: The user logging in should have administrative privileges to make changes to the Salesforce instance.

  1. Go to Setup > Customize > Products > Fields and click on New in Products Custom Fields and Relationships.

  2. Select Text in the Next page and click Next. Enter Field Label as QuickBooksName, Length as 255, and Field Name as QuickBooksName. Click Next.

  3. In the next screen, select field-level security for profiles and click Next. Check the Add Field checkbox. Then, check the Page Layouts you want to add it to. Click Save.

  4. Go to Setup > Customize > Products > Page Layouts. Click on Edit for Product Layout.

  5. Add QuickBooks Name fields to the Page Layout. Click Save.

  6. Log in to your DBSync account and navigate to the DBSync project page.

  7. Ensure that the Salesforce and QuickBooks connectors are validated.

  8. Click on Projects. Select and open a relevant project. Select and open the relevant Task. You will see a list of available flows.

  9. Open the flow for syncing ItemService to Product. Open the map.

  10. Add the mapping QuickBooksName__c = VALUE("FullName") and save the mapping.

  11. Similarly, add the above mapping as follows to complete the Product Hierarchy setup:

  • ItemInventoryToProduct

  • ItemNonInventoryToProduct

  • ItemDiscountToProduct

  • ItemOtherChargesToProduct

  • Now, your Salesforce is configured to handle the Product Hierarchy of QuickBooks.

Integration from Salesforce to QuickBooks

If you have a Parent-Child relationship for Products in Salesforce, then the following changes need to be made to the mappings.

  1. Log in to your DBSync account.

  2. Ensure that Salesforce and QuickBooks connectors are validated.

  3. Click on Projects. Select and open the relevant Project. Navigate to the flow page. You will see a list of available flows.

  4. Open the flow Opportunity To Invoice and open the map for ItemService.

  5. Find the target field "ItemServiceAddRq/ItemServiceAdd/Name". Then, replace the source by copy-pasting the following:

IF(EXACT(VALUE("PricebookEntry/Product2/AVSFQuickBooks__QuickBooks_ItemType__c"),"ItemService"),
RSPLIT(VALUE("PricebookEntry/Product2/Name"),":"),"")
  1. Add the mapping where target field = "ItemServiceAddRq/ItemServiceAdd/ParentRef/FullName" and source field as the following:

IF(EXACT(VALUE("PricebookEntry/Product2/AVSFQuickBooks__QuickBooks_ItemType__c"),"ItemService"),
(IF(VALUE("PricebookEntry/Product2/Name").contains(":"),
LSPLIT(VALUE("PricebookEntry/Product2/Name"),":"),"")),"")
  1. Similarly, open the mapping for ItemInventory.

  2. Find the target field "ItemInventoryAddRq/ItemInventoryAdd/Name" and replace the source code by copy-pasting the following:

IF(EXACT(VALUE("PricebookEntry/Product2/AVSFQuickBooks__QuickBooks_ItemType__c"),"ItemInventory"),
RSPLIT(VALUE("PricebookEntry/Product2/Name"),":"),"")
  1. Open the mapping for ItemNonInventory.

  2. Find the target field "ItemNonInventoryAddRq/ItemNonInventoryAdd/Name". Replace the source code by copy-pasting the following: Add the mapping where target field = "ItemInventoryAddRq/ItemInventoryAdd/ParentRef/FullName" and source field as the following:

IF(EXACT(VALUE("PricebookEntry/Product2/AVSFQuickBooks__QuickBooks_ItemType__c"),"ItemInventory"),
(IF(VALUE("PricebookEntry/Product2/Name").contains(":"),
LSPLIT(VALUE("PricebookEntry/Product2/Name"),":"),"")),"")
IF(EXACT(VALUE("PricebookEntry/Product2/AVSFQuickBooks__QuickBooks_ItemType__c"),"ItemNonInventory"),
RSPLIT(VALUE("PricebookEntry/Product2/Name"),":"),"")
  1. Add the mapping where target field = "ItemNonInventoryAddRq/ItemNonInventoryAdd/ParentRef/FullName" and source field as the following:

IF(EXACT(VALUE("PricebookEntry/Product2/AVSFQuickBooks__QuickBooks_ItemType__c"),"ItemNonInventory"),
(IF(VALUE("PricebookEntry/Product2/Name").contains(":"),
LSPLIT(VALUE("PricebookEntry/Product2/Name"),":"),"")),"")

The above example illustrates Product Hierarchy mapping for OpportunityToInvoice state. Based on the transaction you use, a similar procedure can be followed for other transaction workflows like OpportunityToEstimate, OpportunityToSalesOrder, OpportunityToSalesReceipt, and OpportunityToCreditMemo.

https://login.salesforce.com