Skip to main content
This gem runs in .

Overview

The Salesforce gem enables you to read data from Salesforce directly into your Prophecy pipelines. The gem supports both SOQL (Salesforce Object Query Language) for querying standard Salesforce objects and SAQL (Salesforce Analytics Query Language) for accessing analytical datasets.

Create a Salesforce gem

To create a Salesforce Source or Target gem in your pipeline:
1

Add a Source or Target gem to the pipeline

  1. Open your pipeline in the Studio.
  2. Click on Source/Target in the canvas.
  3. Select Source or Target from the dropdown.
  4. Click on the gem to open the configuration.
2

Select Salesforce format

In the Type tab, select Salesforce. Then, click Next.
3

Set location details

In the Location tab, set your connection details and query configuration. To learn more, jump to Source location and Target location.
4

Set table properties

In the Properties tab, set the table properties. To learn more, jump to Source properties and Target properties.
5

Preview data (Source only)

In the Preview tab, load a sample of the data and verify that it looks correct.

Source configuration

Use these settings to configure a Salesforce Source gem for reading data.

Source location

Query modes

You have three options for retrieving data from Salesforce.

SAQL

Use a SAQL query to access CRM Analytics datasets (formerly known as Wave Analytics). For example:

SOQL

Use a SOQL query to read structured data from Salesforce objects such as Account or Contact tables. For example:
When using the FIELDS(ALL) keyword, the response is limited to 200 rows per call.
Prophecy does not support SOQL parent-to-child relationship queries that use nested subqueries. Query parent and child objects separately, then join the datasets in Prophecy.For example, the following query is not supported:

Salesforce Objects

Retrieve all records from a specific Salesforce object by name, without writing a query. Use this option when the object exceeds the default 200 row limit of FIELDS(ALL).

Source properties

The following properties are available for the Salesforce Source gem. These properties only apply to tables retrieved with the SOQL or Salesforce Object query mode.

Target configuration

Use these settings to configure a Salesforce Target gem for writing data.
The Salesforce Target gem only supports writing to Salesforce Objects. You cannot write to CRM Analytics datasets.

Target location

Use the following parameters to define the write location.

Target properties

The following properties are available for the Salesforce Target gem.