Skip to main content

Salesforce connection

The Salesforce connection lets you access your datasets and objects from Salesforce in Prophecy. Prophecy leverages the Salesforce API to access and update your data.

Prerequisites

Prophecy connects to Salesforce using an API access token associated with your Salesforce account. Access to datasets and objects is controlled by the permissions granted to the account. Before setting up the connection, ensure your account has the necessary access to all relevant resources.

For more details, visit Dataset Security and Object Permissions in the Salesforce documentation.

Feature support

The table below outlines whether the connection supports certain Prophecy features.

FeatureSupported
Read data with a Source gemYes
Write data with a Target gemYes
Browse data in the Environment browserYes
Index tables in the Knowledge GraphNo

Limitations

You cannot browse your Salesforce datasets and objects in the Environment browser. Therefore, you cannot drag and drop tables from the Salesforce connection onto your canvas. Instead, all Salesforce Source and Target gems must be manually configured.

Connection parameters

To create a connection with Salesforce, enter the following parameters:

ParameterDescription
Connection NameUnique name for the connection
Salesforce URLThe base URL for your Salesforce instance.
Example: https://yourcompany.my.salesforce.com
Username (Secret required)Your Salesforce username used for authentication
Password (Secret required)Your Salesforce password used for authentication
Access Token (Secret required)The Salesforce API access token associated with your account
Salesforce API VersionThe version of the Salesforce API to use

Data type mapping

When Prophecy processes data from Salesforce using SQL warehouses, it converts Salesforce-specific data types to formats compatible with your target warehouse. This table shows how Salesforce data types are transformed for Databricks and BigQuery.

note

The data types listed in the first column are the underlying API Primitives and Field Types (such as double, reference, and textarea) used by Salesforce developers and integration tools. This mapping reflects the technical storage format of the data.

They are not the user-facing field names you see in the Salesforce setup menu (such as "Number," "Lookup Relationship," or "Long Text Area"). You can find mappings between these technical types and the corresponding user-interface names in the official Salesforce documentation.

Primitive data types

Salesforce data typeDatabricksBigQuery
stringSTRING
Alias: String
STRING
Alias: String
booleanBOOLEAN
Alias: Boolean
BOOL
Alias: Boolean
doubleDOUBLE
Alias: Double
FLOAT64
Alias: Float
double(p,s)DECIMAL(p,s)
Alias: Decimal
NUMERIC / BIGNUMERIC
Alias: Numeric
dateDATE
Alias: Date
DATE
Alias: Date
dateTimeTIMESTAMP
Alias: Timestamp
TIMESTAMP
Alias: Timestamp
timeSTRING
Alias: String
TIME
Alias: Time
base64BINARY
Alias: Binary
BYTES
Alias: Bytes

Data types for fields

Salesforce data typeDatabricksBigQuery
IDSTRING
Alias: String
STRING
Alias: String
emailSTRING
Alias: String
STRING
Alias: String
percentDECIMAL
Alias: Decimal
FLOAT64
Alias: Float
phoneSTRING
Alias: String
STRING
Alias: String
currencyDECIMAL(16,2)
Alias: Decimal
FLOAT64
Alias: Float
urlSTRING
Alias: String
STRING
Alias: String
encryptedstringSTRING
Alias: String
STRING
Alias: String
picklistSTRING
Alias: String
STRING
Alias: String
multipicklistARRAY<STRING>
Alias: Array
ARRAY<STRING>
Alias: Array
referenceSTRING
Alias: String
STRING
Alias: String
locationSTRUCT
Alias: Struct
STRUCT
Alias: Struct
addressSTRUCT
Alias: Struct
STRUCT
Alias: Struct
textareaSTRING
Alias: String
STRING
Alias: String
calculatedDepends on the Formula Data TypeDepends on the Formula Data Type

Calculated fields

Calculated fields have distinct data types based on the formula data type you select in Salesforce.

Formula data typeDatabricksBigQuery
TextSTRING
Alias: String
STRING
Alias: String
NumberDOUBLE
Alias: Double
FLOAT64
Alias: Float
CheckboxBOOLEAN
Alias: Boolean
BOOL
Alias: Boolean
DateDATE
Alias: Date
DATE
Alias: Date
Date/TimeTIMESTAMP
Alias: Timestamp
TIMESTAMP
Alias: Timestamp

Sharing connections within teams

Connections in Prophecy are stored within fabrics, which are assigned to specific teams. Once a Salesforce connection is added to a fabric, all team members who have access to the fabric can use the connection in their projects. No additional authentication is required—team members automatically inherit the access and permissions of the stored connection credentials.

caution

Be mindful of the access level granted by the stored credentials. Anyone on the team will have the same permissions—including access to sensitive data if allowed.

To manage this securely, consider creating a dedicated fabric and team for high-sensitivity connections. This way, only approved users have access to those credentials.