Ready to Download and Run

by arcesb | November 21, 2017


Synchronize Data from Salesforce to a SQLite Database


Extract records from the Opportunities table in Salesforce and store them in a SQLite database with an appropriate schema.


Download Flow

The Synchronize Data from Salesforce to a SQLite Database sample flow has pre-configured connectors for retrieving records from the Opportunities table in Salesforce and inserting them into the Opportunities table in SQLite. The following connectors make up the core elements of the flow:

  • Cloud Data Connector: Interfaces with a wide range of cloud application data sources provided the corresponding CData driver is installed, enabling you to insert data into or retrieve data from Salesforce and SQLite.
    Note: If you have not already, you will need to install the CData ADO.NET/JDBC Drivers for Salesforce and SQLite. You can download a free, 30-day trial. If you just downloaded and installed the driver, please restart ArcESB before proceeding.
  • Map Connector: Uses a mapping designer and ArcScript to map data from one format to another.
  • SQLite Connector: Allows you to insert or retrieve the data in these documents to or from a SQLite database.

These connectors are configured to automatically move files from one connector to the next until all the records from the Opportunities table in Salesforce are added to the Opportunities table in SQLite. If there is already an existing record in SQLite that matches an incoming record from Salesforce, the application will update the existing SQLite record with the new data.

You can modify the automation settings for each connector in its Automation tab, or you can manually process each step in the workflow using the Send button in the connector's Input tab. You can schedule the application to poll Salesforce for new data from the Cloud Data Connector's Automation tab, or you can manually receive data by using the Receive button from its Output tab.

If you would like to use this sample flow in your workspace, please follow these instructions:

Importing Workspace

Create Workspace

First, navigate to the Flows tab and click on the cogwheel icon in the top right corner. Choose the Create Workspace option to create a new Workspace for this sample flow.

Import Workspace

Then, from the same cogwheel dropdown, click Import Workspace. In the resulting dialog, choose the downloaded sample flow sfdcsqlitesync.arcflow to import the relevant connectors and settings. You can choose to import the flow into any Workspace you like, but we recommend using separate Workspaces for distinct workflows.

Once you have successfully imported the sample flow, you can begin configuring the connectors to best suit your specific use case.

Cloud Data Connector - Salesforce

Connect to Salesforce & Test the Connection

Navigate to the Settings tab of the Cloud Data Connector. In order to establish a connection with Salesforce, you must enter your Username, Password, and Security Token. Click the Test Connection button to verify that you can connect to Salesforce from ArcESB.

Set up your Output Mapping

After successfully setting up and testing a connection, you can choose to query Salesforce for information. Exactly what data is queried is controlled by the Output Mapping configured in the Cloud Data Connector's settings. If you would like to execute all output mappings, navigate to the Output tab and click Receive to start retrieving records.

SQLite Connector

Connect to SQLite & Test the Connection

A SampleDatabase.db file is included with the sample flow. The database can either be left in the connector directory as is, or moved to another location on disk.

Navigate to the Settings tab of the SQLite Connector. In order to establish a connection with the database, you must enter your Data Source, which is the location of the database. Click the Test Connection button to verify that you can connect to MySQL from ArcESB.

Set up your Input Mapping

After successfully setting up and testing a connection, you can verify that the connector is configured to upsert data into the correct tables. Exactly which tables are upserted to is determined by the Input Mapping configured in the Cloud Data Connector's settings.

Once you configure the these connectors, the sample flow is ready for use!

Synchronize Data from Salesforce to a SQLite Database




Are You Up & Running?

If the answer is yes, congratulations for successfully configuring the Synchronize Data from Salesforce to a SQLite Database sample flow! However, if you are confronted by any issues or have any further questions, please do not hesitate to contact us.