The Salesforce Analytics Cloud Connector will allow to connect to the Salesforce Analytics Cloud application using regular username and password via the SOAP API. The connector exposes convenient methods for creating data sets into Salesforce Analytics Cloud from different data sources (XML, CSV, list of map). Integrating with Salesforce Analytics Cloud consists of web service calls utilizing XML request/response setup over an HTTPS connection. The technical details of this connection such as request headers, error handling, HTTPS connection, etc. are all abstracted from the user to make implementation quick and easy.
Additional Info
Requires Mule Enterprise License |
Yes |
Requires Entitlement |
No |
Mule Version |
3.5.0 or higher |
Configs
OAuth 2.0 JWT Bearer
<sfdc-analytics:config-oauth-jwt-bearer>
Connection Management
Salesforce configuration object that uses OAuth 2.0 JWT bearer in order to establish connection with Salesforce system.
Attributes
Name | Java Type | Description | Default Value | Required |
---|---|---|---|---|
name |
The name of this configuration. With this name can be later referenced. |
x |
||
consumerKey |
- consumer key for Salesforce connected app |
x |
||
keyStore |
- path to key store used to sign data during authentication |
x |
||
storePassword |
- password of key store |
x |
||
principal |
Username of desired Salesforce user to take action on behalf of. |
x |
||
tokenEndpoint |
URL pointing the server responsible of providing authentication token. According to Salesforce it should be https://login.salesforce.com/services/oauth2/token, or, if implementing for a community, https://acme.force.com/customers/services/oauth2/token (where acme.force.com/customers is your community URL). |
|
||
metadataFileName |
Path to file containing description of object structure of a row that will be uploaded into Salesforce Analytics Cloud system. This path has to be relative path to src/main/resources dir. |
x |
||
readTimeout |
int |
Specifies the amount of time, in milliseconds, that the consumer will wait for a response before it times out. Default value is 0 which means infinite. |
0 |
|
connectionTimeout |
int |
Specifies the amount of time, in milliseconds, that the consumer will attempt to establish a connection before it times out. Default value is 0 which means infinite. |
0 |
|
proxyHost |
Hostname of the proxy. If this property is not set then no proxy is used, otherwise proxy is going to be used but host can not be empty. |
|
||
proxyPort |
Port of the proxy. If host is set then this property has to be set and can not be a negative number. |
3128 |
|
|
proxyUsername |
Username used to authenticate against the proxy. If this property is not set then no authentication is going to be used against proxy, otherwise this value can not be empty. |
|
||
proxyPassword |
Password used to authenticate against the proxy. |
|
OAuth 2.0 SAML Bearer
<sfdc-analytics:config-oauth-saml-bearer>
Connection Management
Salesforce configuration object that uses OAuth 2.0 JWT bearer in order to establish connection with Salesforce system.
Attributes
Name | Java Type | Description | Default Value | Required |
---|---|---|---|---|
name |
The name of this configuration. With this name can be later referenced. |
x |
||
consumerKey |
- consumer key for Salesforce connected app |
x |
||
keyStore |
- path to key store used to sign data during authentication |
x |
||
storePassword |
- password of key store |
x |
||
principal |
Username of desired Salesforce user to take action on behalf of. |
x |
||
tokenEndpoint |
URL pointing the server responsible of providing authentication token. According to Salesforce it should be https://login.salesforce.com/services/oauth2/token, or, if implementing for a community, https://acme.force.com/customers/services/oauth2/token (where acme.force.com/customers is your community URL). |
|
||
metadataFileName |
Path to file containing description of object structure of a row that will be uploaded into Salesforce Analytics Cloud system. This path has to be relative path to src/main/resources dir. |
x |
||
readTimeout |
int |
Specifies the amount of time, in milliseconds, that the consumer will wait for a response before it times out. Default value is 0 which means infinite. |
0 |
|
connectionTimeout |
int |
Specifies the amount of time, in milliseconds, that the consumer will attempt to establish a connection before it times out. Default value is 0 which means infinite. |
0 |
|
proxyHost |
Hostname of the proxy. If this property is not set then no proxy is used, otherwise proxy is going to be used but host can not be empty. |
|
||
proxyPort |
Port of the proxy. If host is set then this property has to be set and can not be a negative number. |
3128 |
|
|
proxyUsername |
Username used to authenticate against the proxy. If this property is not set then no authentication is going to be used against proxy, otherwise this value can not be empty. |
|
||
proxyPassword |
Password used to authenticate against the proxy. |
|
Basic authentication
<sfdc-analytics:config>
Connection Management
Salesforce Analytics Cloud connector configuration that uses basic authentication for establishing connection with Salesforce Analytics Cloud system.
Attributes
Name | Java Type | Description | Default Value | Required |
---|---|---|---|---|
name |
The name of this configuration. With this name can be later referenced. |
x |
||
username |
- username for Salesforce API |
x |
||
password |
- password for Salesforce API |
x |
||
securityToken |
- token for Salesorce API |
|
||
url |
Web service URL responsible for user authentication. This is the URL for the endpoint able to handle SOAP authentication requests. |
|
||
metadataFileName |
Path to file containing description of object structure of a row that will be uploaded into Salesforce Analytics Cloud system. This path has to be relative path to src/main/resources dir. |
x |
||
readTimeout |
int |
Specifies the amount of time, in milliseconds, that the consumer will wait for a response before it times out. Default value is 0 which means infinite. |
0 |
|
connectionTimeout |
int |
Specifies the amount of time, in milliseconds, that the consumer will attempt to establish a connection before it times out. Default value is 0 which means infinite. |
0 |
|
proxyHost |
Hostname of the proxy. If this property is not set then no proxy is used, otherwise proxy is going to be used but host can not be empty. |
|
||
proxyPort |
Port of the proxy. If host is set then this property has to be set and can not be a negative number. |
3128 |
|
|
proxyUsername |
Username used to authenticate against the proxy. If this property is not set then no authentication is going to be used against proxy, otherwise this value can not be empty. |
|
||
proxyPassword |
Password used to authenticate against the proxy. |
|
Salesforce Analytics Cloud (OAuth)
<sfdc-analytics:config-with-oauth>
OAuth2
Using OAuth2 as authentication method will add the authorize and unauthorize operations. You must authorize before using any operation with OAuth2.
Salesforce Analytics Cloud connector configuration that uses oauth2 dance for establishing connection with Salesforce Analytics Cloud system.
Attributes
Name | Java Type | Description | Default Value | Required |
---|---|---|---|---|
name |
The name of this configuration. With this name can be later referenced. |
x |
||
consumerKey |
Your application's client identifier (consumer key in Remote Access Detail). |
x |
||
consumerSecret |
Your application's client secret (consumer secret in Remote Access Detail). |
x |
||
metadataFileName |
Path to file containing description of object structure of a row that will be uploaded into Salesforce Analytics Cloud system. This path has to be relative path to src/main/resources dir. |
x |
||
readTimeout |
int |
Specifies the amount of time, in milliseconds, that the consumer will wait for a response before it times out. Default value is 0 which means infinite. |
0 |
|
connectionTimeout |
int |
Specifies the amount of time, in milliseconds, that the consumer will attempt to establish a connection before it times out. Default value is 0 which means infinite. |
0 |
|
proxyHost |
Hostname of the proxy. If this property is not set then no proxy is used, otherwise proxy is going to be used but host can not be empty. |
|
||
proxyPort |
Port of the proxy. If host is set then this property has to be set and can not be a negative number. |
3128 |
|
|
proxyUsername |
Username used to authenticate against the proxy. If this property is not set then no authentication is going to be used against proxy, otherwise this value can not be empty. |
|
||
proxyPassword |
Password used to authenticate against the proxy. |
|
Processors
Create data set
<sfdc-analytics:create-data-set>
DataSense enabled
Creates a new data set into Salesforce Analytics Cloud system and returns the identifier of created data set within Salesforce Analytics Cloud system.
XML Sample
<sfdc-analytics:create-data-set config-ref="mySalesforceAnalyticsConfig" operation="OVERWRITE" description="descriptionOfDataSet" label="labelOfDataSet" dataSetName="dataSetName"/>
Attributes
Name | Java Type | Description | Default Value | Required |
---|---|---|---|---|
config-ref |
Specify which config to use |
x |
||
operation |
- indicates which operation to use when you’re loading data into the DataSet. See DataSetConnectorOperation |
x |
||
description |
- data set description |
x |
||
label |
- data set label |
x |
||
dataSetName |
- data set name |
x |
||
edgemartContainer |
- The name of the app that contains the dataset.
|
|
||
notificationSent |
- Indicates when to send notifications about the upload. Picklist values are:
|
|
||
notificationEmail |
- The email address to send notifications to. Can be up to 255 characters and can contain only one email address. Defaults to the current user’s email address. |
|
||
type |
- The metadata key |
x |
Upload external data
<sfdc-analytics:upload-external-data>
DataSense enabled
Inserts given records into data set with given id from Salesforce Analytics Cloud system.
XML Sample
<sfdc-analytics:upload-external-data config-ref="mySalesforceAnalyticsConfig" type="recordId" dataSetId="dataSetId">
<sfdc-analytics:payload ref="#[payload]"/>
</sfdc-analytics:upload-external-data>
Attributes
Name | Java Type | Description | Default Value | Required |
---|---|---|---|---|
config-ref |
Specify which config to use |
x |
||
payload |
- list of records to be inserted |
#[payload] |
|
|
type |
- type of the records to be inserted. This is automatically computed based on metadata extracted from file provided with configuration element |
x |
||
dataSetId |
- identifier of data set within Salesforce Analytics Cloud system |
x |
Start data processing
<sfdc-analytics:start-data-processing>
Tells to Salesforce Analytics Cloud system to start processing the records uploaded so far into given data set
XML Sample
<sfdc-analytics:start-data-processing config-ref="mySalesforceAnalyticsConfig" dataSetId="dataSetId"/>
Attributes
Name | Java Type | Description | Default Value | Required |
---|---|---|---|---|
config-ref |
Specify which config to use |
x |
||
dataSetId |
- identifier of data set to be processed |
x |
Upload external data into new data set and start processing
<sfdc-analytics:upload-external-data-into-new-data-set-and-start-processing>
DataSense enabled
Creates data set uploads data into it and tells to Salesforce Analytics Cloud system to start processing uploaded data.
XML Sample
<sfdc-analytics:upload-external-data-into-new-data-set-and-start-processing config-ref="mySalesforceAnalyticsConfig" type="recordId" operation="OVERWRITE" description="descriptionOfDataSet" label="labelOfDataSet" dataSetName="dataSetName">
<sfdc-analytics:payload ref="#[map-payload:payload]"/>
</sfdc-analytics:upload-external-data-into-new-data-set-and-start-processing>
Attributes
Name | Java Type | Description | Default Value | Required |
---|---|---|---|---|
config-ref |
Specify which config to use |
x |
||
payload |
- list of records to be inserted |
#[payload] |
|
|
type |
- type of the records to be inserted. This is automatically computed based on metadata extracted from file provided with configuration element |
x |
||
operation |
- indicates which operation to use when you’re loading data into the DataSet. See DataSetConnectorOperation |
x |
||
description |
- data set description |
x |
||
label |
- data set label |
x |
||
dataSetName |
- data set name |
x |
||
edgemartContainer |
- The name of the app that contains the dataset.
|
|
||
notificationSent |
- Indicates when to send notifications about the upload. Picklist values are:
|
|
||
notificationEmail |
- The email address to send notifications to. Can be up to 255 characters and can contain only one email address. Defaults to the current user’s email address. |
|
Returns
Return Java Type | Description |
---|---|
identifier of create data set |