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
  • Overview
  • Data Flow
  • Process Map
  1. Tutorials
  2. Salesforce and Database

Database to Salesforce Integration

PreviousSalesforce and DatabaseNextDatabase to Database

Last updated 1 month ago

Overview

DBSync for Database To Salesforce Integration is an easy to use solution. It integrates Database with Salesforce objects like accounts, contacts, products, opportunity & opportunity line items.

Data Flow

This tutorial shows how to read various records from Database and write to the respective mapped objects of Salesforce . The table below shows the data flow between tables from Database to Salesforce objects.

The data flow may be different for each implementation. The following table is just one of the examples.

Process Map

The process map for the Database To Salesforce solution is as shown in the image below.

Prerequisites For Integration

The integration prerequisites are as follows:

  • Have valid licenses to DBSync Salesforce, Database Connector and Username and Password to connect with DBSync iPaaS platform.

  • Have Salesforce login and password to access their Web Services.

  • Setup security in Salesforce to connect to external integration.

  • Have a valid database Username, Password, host/IP address and Port on the hosted database.

· The Username and Password configured for Database Connector instance should have sufficient privilege to access the database required for integration.

Configuring Source App

Follow the steps below to get started with a database and to configure the database connector.

  1. The table below gives the required, and optional, parameters to be set for establishing a connection of database and to write various tables as chosen in the relevant workflows.

  2. Click Save to save the parameter settings:

Property
Description
Required

Username

Database Username

Yes

Password

Database Password

Yes

Host

Host name or IP address of the database server

Yes

Port

The port used to connect to database server

Yes

Database

The name of your database

Yes

Type

JDBC Driver for the Databases mentioned in the URL section in the same order.

  • sqlserver

  • oracle

  • mysql

  • postgresssql

  • db2

  • access

Yes

Database URL

JDBC connection string

  • SQLServer: jdbc:sqlserver://[hostname]:[port];databaseName=[databasename]

  • Oracle: jdbc:oracle:thin:@[hostname]:[port]:[sid]

  • mySQL: jdbc:mysql://[hostname]:[port]/[databasename]

  • PostgresSQL: jdbc:postgresql://[host]:[port]/[database]

  • DB2: jdbc:db2://[host]:[port]/[database]

  • Access: jdbc:[databasename]

Yes

Configuring Target App

Follow the steps to configure the DBSync's Salesforce Connector:

  1. Click Edit on the Salesforce connector to input Salesforce parameters.

  2. Click Save to save the settings.

The table below gives the required, and optional, parameters to be set for establishing a connection of Salesforce from which you can read the data and write to Salesforce.

Property
Description
Required

UserName

The username to log into salesforce account.

Yes

Password

The password to login to salesforce account

Yes

End-point

Yes

Sid

Session Id

Optional

Transport.compression

For compression

Optional

Proxy Host

If you use a proxy server then put <<proxy ip or host>>

Optional

Proxy Port

If you use a proxy server then put <<proxy port>>

Optional

Proxy Username

If you use a proxy server then put <<proxy username>>

Optional

Proxy Password

If you use a proxy server then put <<proxy password>>

Optional

Accept Gzip

As Applicable

Optional

Send Gzip

As Applicable

Optional

For the sake of understanding, we have chosen the MySQL database with tables like Contacts, Customers, Items, Oppheader, and Opplineitem. Data from the database is sent to a configured Salesforce instance. You can download the SQL script from the download script link. Then, import the table structures into your MySQL database if you have the same integration requirement listed in the tutorial.

DBSync Project Setup

  1. Log in to your DBSync account.

  2. Once logged in, click on the template library menu from the left side navigation.

  3. Create a project for salesforce and database.

  4. Navigate to the Connector listing of the Salesforce To Database.

  5. In the Connector listing page, you can see Salesforce and the database Connector.

  6. Individual Connector configurations are explained in the subsequent sections.

  7. Navigate to the flow page for mappings.

  8. Various transformations can be applied to each field through the mapping section. Then, save the workflow.

  9. Click the 'Run Now' button to initiate the integration of the selected workflow.

  10. The sync can be monitored through the log section in the event of an error. You can also drill down to each event log to debug and fix the error at its occurrence.

Run Integrations

Integration can be run using a scheduler or by clicking on the 'Run Now' button. Scheduler jobs are used to trigger processes at scheduled time intervals automatically. On the other hand, manual triggering of the sync can be initiated by clicking on the 'Run Now' button from the process listing page/workflow page.

Scheduler

To create a scheduler job, follow the steps below.

  1. Inside a Project, navigate to the Scheduler page from the left side navigation.

  2. From the 'Add schedule section,' create a schedule job. Select the process from the drop-down menu, then choose start on date, start on time, and repeat frequency. Save the job.

  3. If repeat frequency is set to no repeat, then the scheduled job triggers syncs only once - as per the scheduled date and time.

  4. If repeat frequency is set to either minutes, hourly, or weekly, then the process is scheduled to run at the repeated set frequency.

https://www.salesforce.com/services/Soap/u/32.0