Skip to main content
Dependencies:
  • ProphecyWebAppPython 0.0.1+
Cluster requirements:
  • UC dedicated clusters not supported
  • UC standard clusters not supported
  • Livy clusters not supported
Use Salesforce as a source or target in your pipeline to read from or write to Salesforce Wave datasets and standard Salesforce objects.

Capabilities

When you use Salesforce as a source or target, you can:
  • Create datasets in Salesforce Wave from a Spark DataFrame.
  • Read a Salesforce Wave dataset using a SAQL query. The gem returns the result as a DataFrame.
  • Read a Salesforce object using a SOQL query. The gem returns the result as a DataFrame.
  • Update a Salesforce object using data from a DataFrame.

Prerequisites

This connector uses the Spark Salesforce Library. To run the gem, add the following Maven dependency to your cluster: com.springml:spark-salesforce_2.12:1.1.4

Parameters

Source

The Source gem reads data from Salesforce objects and allows you to optionally specify the following additional properties.

Source properties

Example

The following example uses a SOQL query to query our leads dataset on the sales cloud.

Compiled code

To see the compiled code of your project, switch to the Code view in the project header.

Target

The Target gem writes data to Salesforce objects and allows you to optionally specify the following additional properties.

Target properties

Compiled code

To see the compiled code of your project, switch to the Code view in the project header.