Connectors

Salesforce SOQL Query

Salesforce queries use SOQL DateTime and Date Literals, please see the Salesforce page for more information.

Connection

Data Synchronisation Studio (Data Sync) contains the Salesforce SOQL provider which connects to an object inside of your Salesforce instance.

You can connect to the SOQL provider by either drag and dropping from the connection tree view, or right clicking and choosing Connect to Source or Connect to Target.

Drag and Drop

The drag and drop method to connect to Salesforce is to drag and drop the SOQL Query object from the connections tree and onto the data source. You then enter in the query into the properties field.

Drag and Drop

Right Click

If you right click onto the SOQL Query object in the connections tree you will be given an option of either Connect to Source or Connect to Target. Choose where you want the connection to go and then enter in the query into the properties field.

Right Click

Add the Query to the Project

Connect to the SOQL Query connector following the previous instructions and paste the desired query into the property box.

You can expand the query by clicking on the ellipsis (...) and either type the required query or upload a query statement, using Open From File.

Query Property Box

Import Query

An example of a SOQL Query you could use could be, to select all records in the contact object that have a first name of "Dave":

SELECT Id, FirstName
FROM Contact
WHERE FirstName = "Dave"

Preview the Data

To preview the data being returned by the query, press 'Preview A' in the schema map tab.

Schema Map

Export to CSV

To export the data returned by the query into a CSV file, the 'Create CSV File' feature can be used which is located in the tools menu. You will need to set the new CSV files location.

Create CSV File

Compare A to B and then synchronise. This will synchronise the extracted data from the SOQL Query into the CSV file.

The project can then be saved and scheduled to extract daily, hourly or weekly using the Run Tool and/or Ouvvi, or the project can be run Ad-Hoc.