# mulesoft Salesforce Einstein Analytics Connector - Full Documentation --- product: Salesforce Einstein Analytics Connector version: 3.18 --- # Salesforce Einstein Analytics Cloud Connector 3.18 > For the full documentation index, see: https://docs.mulesoft.com/llms.txt Anypoint Connector for Salesforce Einstein Analytics Cloud (Salesforce Analytics Connector) enables you to connect to the Salesforce Analytics Cloud application using the Salesforce External Data API. The connector exposes convenient methods for creating, deleting, and populating datasets into the Salesforce Analytics Cloud system. Load data into Salesforce Einstein Analytics Cloud from many different data sources whether they are on-premise or on the cloud. Go beyond .csv files with this connector. For software requirements and compatibility information, see [Salesforce Einstein Analytics Connector Release Notes](https://docs.mulesoft.com/release-notes/connector/salesforce-analytics-connector-release-notes-mule-4). ## Before You Begin To use this connector, you must be familiar with: - The Salesforce Einstein Analytics API - Anypoint connectors - Mule runtime engine (Mule) - Elements in a Mule flow - Global elements - How to create a Mule app using Anypoint Studio Before creating an app, you must have login credentials to test your connection to your target resource. ## POM File Information The Apache Maven `pom.xml` file generated by Anypoint Studio contains dependencies for a Mule app. If you code a Mule app manually, include this XML snippet in your `pom.xml` file to enable access to this connector: ```xml com.mulesoft.connectors mule-sfdc-analytics-connector x.x.x mule-plugin ``` Replace `x.x.x` with the version that corresponds to the connector you are using. To obtain the most up-to-date `pom.xml` file information: 1. Go to [Anypoint Exchange](https://www.mulesoft.com/exchange/). 2. In Exchange, click **Login** and supply your Anypoint Platform username and password. 3. In Exchange, search for ``. 4. Select the connector. 5. Click **Dependency Snippets** near the upper right of the screen. ### Required Parameters for Basic Username Password Authentication - Username Salesforce Einstein Analytics username - Password Password that corresponds with the Salesforce Einstein Analytics username - Security Token Corresponding security token ![Basic Authentication config window](/mulesoft/current/en-us/salesforce-analytics-cloud-connector/3.18/_images/salesforce-analytics-dc-basic-auth.png) ### Required Parameters for the OAuth 2.0 Configuration - Consumer Key Consumer key for the Salesforce connected app. - Consumer Secret Consumer secret for the connector to access Salesforce. ![OAuth Authentication config window](/mulesoft/current/en-us/salesforce-analytics-cloud-connector/3.18/_images/salesforce-analytics-dc-oauth.png) ### Required Parameters for the OAuth 2.0 JWT Bearer Configuration - Consumer Key Consumer key for the Salesforce connected app - Keystore File See [Generating a Keystore File](#generating-keystore) - Store Password Password for the keystore - Principal Salesforce username ![JWT Bearer config window](/mulesoft/current/en-us/salesforce-analytics-cloud-connector/3.18/_images/salesforce-analytics-dc-jwt.png) #### Required Parameters for the OAuth 2.0 SAML Bearer Configuration - Consumer Key Consumer key for the Salesforce connected app. - Keystore File Path to the keystore used to sign data during authentication. Note that only the Java keystore format is allowed. - Store Password Keystore password. - Principal Salesforce username. ![SAML Bearer config window](/mulesoft/current/en-us/salesforce-analytics-cloud-connector/3.18/_images/salesforce-analytics-saml.png) #### Generating a Keystore File The Keystore is the path to the keystore used to sign data during authentication. The following example shows how to generate a JKS file: 1. Go to your Mule workspace, and open the command prompt (for Windows) or Terminal (for Mac). 2. Type `keytool -genkeypair -alias salesforce-cert -keyalg RSA -keystore salesforce-cert.jks` and press enter. 3. Enter the following details: - Password for the keystore - Your first name and last name - Your organization unit - Name of your city, state, and the two letter code of your county The system generates a Java keystore file containing a private or public key-pair in your workspace. 4. Provide the file path for the keystore in your connector configuration. Type `keytool -exportcert -alias salesforce-cert -file salesforce-cert.crt -keystore salesforce-cert.jks` and press enter. The system now exports the public key from the keystore into the workspace. This is the public key that you need to enter in your Salesforce instance. 5. Verify that you have both the keystore (`salesforce-cert.jks`) and the public key (`salesforce-cert.crt`) files in your workspace. ## Add the Connector in Studio 1. In Studio, create a Mule project. 2. In the Mule Palette view, click **(X) Search in Exchange**. 3. In **Add Modules to Project**, type "analytics" in the search field. 4. Click this connector’s name in **Available modules**. 5. Click **Add**. 6. Click **Finish**. ### Configure the Connector in Studio 1. Drag the desired Salesforce Analytics operation to the Studio canvas. 2. To create a global element for the connector, on the **General** tab, configure the authentication as described in the authentication sections. The following authentication connection types are available: - [Username Password](#basic-authentication) - [OAuth 2.0](#oauth2) - [OAuth 2.0 JWT](#oauth2-jwt) - [OAuth 2.0 SAML Bearer](#oauth2-saml) 3. Configure these fields to upload external data into new dataset and start the processing operation: - Type Type of the records to insert. Select a JSON file representing the schema of the dataset to create. - Records DataSense expression; the records to insert. - Operation Specify the operation to use when you’re loading data into a dataset. - Description - Label - Data Set Name ![Upload external data operation properties window](/mulesoft/current/en-us/salesforce-analytics-cloud-connector/3.18/_images/salesforce-analytics-studio-upload-and-start.png) ### Username Password On the **General** tab of the **Global Element Properties** screen, enter the following information to configure Basic authentication: - **Username** Enter the Salesforce username. - **Password** Enter the corresponding password. - **Security Token** Enter the corresponding security token. The following screenshot shows an example of configuring Basic authentication: ![Username Password global element properties window](/mulesoft/current/en-us/salesforce-analytics-cloud-connector/3.18/_images/salesforce-analytics-basic.png) Figure 1. Basic authentication fields ### OAuth 2.0 On the **General** tab of the **Global Element Properties** screen, enter the following information to configure OAuth 2.0 authentication: - **Consumer Key** Consumer key for the Salesforce connected app. - **Consumer Secret** Consumer secret for the connector to access Salesforce. The following screenshot shows an example of configuring the OAuth 2.0 authentication: ![OAuth v2.0 global element properties window](/mulesoft/current/en-us/salesforce-analytics-cloud-connector/3.18/_images/salesforce-analytics-oauth.png) Figure 2. OAuth 2.0 authentication fields ### OAuth 2.0 JWT On the **General** tab of the **Global Element Properties** screen, enter the following information to configure OAuth 2.0 JWT authentication: - **Consumer Key** Consumer key for the Salesforce connected app - **Keystore File** See [Generating a Keystore File](#generating-keystore) - **Store Password** Password for the keystore - **Principal** Salesforce username ![OAuth JWT global element properties window](/mulesoft/current/en-us/salesforce-analytics-cloud-connector/3.18/_images/salesforce-analytics-jwt.png) Figure 3. OAuth 2.0 JWT authentication fields ### OAuth 2.0 SAML Bearer On the **General** tab of the **Global Element Properties** screen, enter the following information to configure OAuth 2.0 SAML Bearer authentication: - **Consumer Key** Consumer key for the Salesforce connected app - **Keystore File** See [Generating a Keystore File](#generating-keystore) - **Store Password** Password for the keystore. - Principal Salesforce username ![OAuth 2.0 SAML Bearer global element properties window](/mulesoft/current/en-us/salesforce-analytics-cloud-connector/3.18/_images/salesforce-analytics-saml.png) Figure 4. OAuth 2.0 SAML Bearer authentication fields ## Use Case: Studio This use case provides an example of how to use the Salesforce Einstein Analytics Connector and contains this end to end flow: - Uses an HTTP Listener as the input source. - Configures a connection using a username, password, and the security token. - Uses a Salesforce Analytics operation with the parameters to use. The example that follows contains these components: - HTTP Listener, which accepts data from HTTP requests. - Transform Message, which provides the records input data required by Salesforce Einstein Analytics connector. ```dataweave %dw 2.0 output application/java --- [ { "Id": 1, "Country": "Country", "City": "City", "Year": 428742153, "Distance": 284644936, "Currencies": [ "EUR", "USD" ], "CreationDate": "20/12/2017" as Date {format: "dd/MM/yyyy"} }, { "Id": 2, "Country": "Country", "City": "City", "Year": 1432651434, "Distance": 1336594394, "Currencies": [ "EUR", "USD", "HUF" ], "CreationDate": "20/12/2017" as Date {format: "dd/MM/yyyy"} } ] ``` - Salesforce Analytics Connector, which connects with Salesforce, and performs an operation to push data into Salesforce Einstein Analytics Cloud. ![Studio flow with Listener, Transform Message, and Upload external data into new data set and start processing](/mulesoft/current/en-us/salesforce-analytics-cloud-connector/3.18/_images/salesforce-analytics-studio-use-case.png) ## Use Case: XML Paste the XML code provided in this example into the Configuration XML tab in Anypoint Studio to experiment with the flow described in the previous section. Keep in mind that you must still provide the `metadata.json` file describing the schema of the dataset to be created. ```xml ``` ## See Also - [Introduction to Anypoint Connectors](https://docs.mulesoft.com/connectors/introduction/introduction-to-anypoint-connectors) - [Salesforce Einstein Analytics Connector on Exchange](https://www.mulesoft.com/exchange/com.mulesoft.connectors/mule-sfdc-analytics-connector/) - [Salesforce External Data API](https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_ext_data.meta/bi_dev_guide_ext_data/). - For Required Parameters for Basic Username Password Authentication see [Salesforce Basic Authentication](https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_calls_login.htm) - For Required Parameters for the OAuth 2.0 Configuration see [Salesforce OAuth 2.0](https://help.salesforce.com/s/articleView?id=remoteaccess_oauth_web_server_flow.htm&language=en_US&type=5) - For Required Parameters for the OAuth 2.0 JWT Bearer Configuration see [Salesforce OAuth 2.0 JWT Bearer](https://help.salesforce.com/s/articleView?id=remoteaccess_oauth_jwt_flow.htm&language=en_US&type=5) - For Required Parameters for the OAuth 2.0 SAML Bearer Configuration see [Salesforce OAuth 2.0 SAML Bearer](https://help.salesforce.com/s/articleView?id=remoteaccess_oauth_SAML_bearer_flow.htm&language=en_US&type=5) - [Salesforce Help](https://help.salesforce.com) --- product: Salesforce Einstein Analytics Connector version: 3.19 --- # Salesforce Einstein Analytics Cloud Connector 3.19 > For the full documentation index, see: https://docs.mulesoft.com/llms.txt Anypoint Connector for Salesforce Einstein Analytics Cloud (Salesforce Analytics Connector) enables you to connect to the Salesforce Analytics Cloud application using the Salesforce External Data API. The connector exposes convenient methods for creating, deleting, and populating datasets into the Salesforce Analytics Cloud system. Load data into Salesforce Einstein Analytics Cloud from many different data sources whether they are on-premise or on the cloud. Go beyond .csv files with this connector. For software requirements and compatibility information, see [Salesforce Einstein Analytics Connector Release Notes](https://docs.mulesoft.com/release-notes/connector/salesforce-analytics-connector-release-notes-mule-4). ## Before You Begin To use this connector, you must be familiar with: - The Salesforce Einstein Analytics API - Anypoint connectors - Mule runtime engine (Mule) - Elements in a Mule flow - Global elements - How to create a Mule app using Anypoint Studio Before creating an app, you must have login credentials to test your connection to your target resource. ## POM File Information The Apache Maven `pom.xml` file generated by Anypoint Studio contains dependencies for a Mule app. If you code a Mule app manually, include this XML snippet in your `pom.xml` file to enable access to this connector: ```xml com.mulesoft.connectors mule-sfdc-analytics-connector x.x.x mule-plugin ``` Replace `x.x.x` with the version that corresponds to the connector you are using. To obtain the most up-to-date `pom.xml` file information: 1. Go to [Anypoint Exchange](https://www.mulesoft.com/exchange/). 2. In Exchange, click **Login** and supply your Anypoint Platform username and password. 3. In Exchange, search for ``. 4. Select the connector. 5. Click **Dependency Snippets** near the upper right of the screen. ### Required Parameters for Basic Username Password Authentication - Username Salesforce Einstein Analytics username - Password Password that corresponds with the Salesforce Einstein Analytics username - Security Token Corresponding security token ![Basic Authentication config window](/mulesoft/current/en-us/salesforce-analytics-cloud-connector/3.19/_images/salesforce-analytics-dc-basic-auth.png) > [!NOTE] The `Username Password` connection type is only supported for Salesforce API v64.0 and > earlier versions. ### Required Parameters for the OAuth 2.0 Configuration - Consumer Key Consumer key for the Salesforce connected app. - Consumer Secret Consumer secret for the connector to access Salesforce. ![OAuth Authentication config window](/mulesoft/current/en-us/salesforce-analytics-cloud-connector/3.19/_images/salesforce-analytics-dc-oauth.png) ### Required Parameters for the OAuth 2.0 JWT Bearer Configuration - Consumer Key Consumer key for the Salesforce connected app - Keystore File See [Generating a Keystore File](#generating-keystore) - Store Password Password for the keystore - Principal Salesforce username ![JWT Bearer config window](/mulesoft/current/en-us/salesforce-analytics-cloud-connector/3.19/_images/salesforce-analytics-dc-jwt.png) #### Required Parameters for the OAuth 2.0 SAML Bearer Configuration - Consumer Key Consumer key for the Salesforce connected app. - Keystore File Path to the keystore used to sign data during authentication. Note that only the Java keystore format is allowed. - Store Password Keystore password. - Principal Salesforce username. ![SAML Bearer config window](/mulesoft/current/en-us/salesforce-analytics-cloud-connector/3.19/_images/salesforce-analytics-saml.png) #### Generating a Keystore File The Keystore is the path to the keystore used to sign data during authentication. The following example shows how to generate a JKS file: 1. Go to your Mule workspace, and open the command prompt (for Windows) or Terminal (for Mac). 2. Type `keytool -genkeypair -alias salesforce-cert -keyalg RSA -keystore salesforce-cert.jks` and press enter. 3. Enter the following details: - Password for the keystore - Your first name and last name - Your organization unit - Name of your city, state, and the two letter code of your county The system generates a Java keystore file containing a private or public key-pair in your workspace. 4. Provide the file path for the keystore in your connector configuration. Type `keytool -exportcert -alias salesforce-cert -file salesforce-cert.crt -keystore salesforce-cert.jks` and press enter. The system now exports the public key from the keystore into the workspace. This is the public key that you need to enter in your Salesforce instance. 5. Verify that you have both the keystore (`salesforce-cert.jks`) and the public key (`salesforce-cert.crt`) files in your workspace. ## Add the Connector in Studio 1. In Studio, create a Mule project. 2. In the Mule Palette view, click **(X) Search in Exchange**. 3. In **Add Modules to Project**, type "analytics" in the search field. 4. Click this connector’s name in **Available modules**. 5. Click **Add**. 6. Click **Finish**. ### Configure the Connector in Studio 1. Drag the desired Salesforce Analytics operation to the Studio canvas. 2. To create a global element for the connector, on the **General** tab, configure the authentication as described in the authentication sections. The following authentication connection types are available: - [Username Password](#basic-authentication) - [OAuth 2.0](#oauth2) - [OAuth 2.0 JWT](#oauth2-jwt) - [OAuth 2.0 SAML Bearer](#oauth2-saml) 3. Configure these fields to upload external data into new dataset and start the processing operation: - Type Type of the records to insert. Select a JSON file representing the schema of the dataset to create. - Records DataSense expression; the records to insert. - Operation Specify the operation to use when you’re loading data into a dataset. - Description - Label - Data Set Name ![Upload external data operation properties window](/mulesoft/current/en-us/salesforce-analytics-cloud-connector/3.19/_images/salesforce-analytics-studio-upload-and-start.png) ### Username Password On the **General** tab of the **Global Element Properties** screen, enter the following information to configure Basic authentication: - **Username** Enter the Salesforce username. - **Password** Enter the corresponding password. - **Security Token** Enter the corresponding security token. The following screenshot shows an example of configuring Basic authentication: ![Username Password global element properties window](/mulesoft/current/en-us/salesforce-analytics-cloud-connector/3.19/_images/salesforce-analytics-basic.png) Figure 1. Basic authentication fields > [!NOTE] The `Username Password` connection type is only supported for Salesforce API v64.0 and > earlier versions. ### OAuth 2.0 On the **General** tab of the **Global Element Properties** screen, enter the following information to configure OAuth 2.0 authentication: - **Consumer Key** Consumer key for the Salesforce connected app. - **Consumer Secret** Consumer secret for the connector to access Salesforce. The following screenshot shows an example of configuring the OAuth 2.0 authentication: ![OAuth v2.0 global element properties window](/mulesoft/current/en-us/salesforce-analytics-cloud-connector/3.19/_images/salesforce-analytics-oauth.png) Figure 2. OAuth 2.0 authentication fields ### OAuth 2.0 JWT On the **General** tab of the **Global Element Properties** screen, enter the following information to configure OAuth 2.0 JWT authentication: - **Consumer Key** Consumer key for the Salesforce connected app - **Keystore File** See [Generating a Keystore File](#generating-keystore) - **Store Password** Password for the keystore - **Principal** Salesforce username ![OAuth JWT global element properties window](/mulesoft/current/en-us/salesforce-analytics-cloud-connector/3.19/_images/salesforce-analytics-jwt.png) Figure 3. OAuth 2.0 JWT authentication fields ### OAuth 2.0 SAML Bearer On the **General** tab of the **Global Element Properties** screen, enter the following information to configure OAuth 2.0 SAML Bearer authentication: - **Consumer Key** Consumer key for the Salesforce connected app - **Keystore File** See [Generating a Keystore File](#generating-keystore) - **Store Password** Password for the keystore. - Principal Salesforce username ![OAuth 2.0 SAML Bearer global element properties window](/mulesoft/current/en-us/salesforce-analytics-cloud-connector/3.19/_images/salesforce-analytics-saml.png) Figure 4. OAuth 2.0 SAML Bearer authentication fields ## Use Case: Studio This use case provides an example of how to use the Salesforce Einstein Analytics Connector and contains this end to end flow: - Uses an HTTP Listener as the input source. - Configures a connection using a username, password, and the security token. - Uses a Salesforce Analytics operation with the parameters to use. The example that follows contains these components: - HTTP Listener, which accepts data from HTTP requests. - Transform Message, which provides the records input data required by Salesforce Einstein Analytics connector. ```dataweave %dw 2.0 output application/java --- [ { "Id": 1, "Country": "Country", "City": "City", "Year": 428742153, "Distance": 284644936, "Currencies": [ "EUR", "USD" ], "CreationDate": "20/12/2017" as Date {format: "dd/MM/yyyy"} }, { "Id": 2, "Country": "Country", "City": "City", "Year": 1432651434, "Distance": 1336594394, "Currencies": [ "EUR", "USD", "HUF" ], "CreationDate": "20/12/2017" as Date {format: "dd/MM/yyyy"} } ] ``` - Salesforce Analytics Connector, which connects with Salesforce, and performs an operation to push data into Salesforce Einstein Analytics Cloud. ![Studio flow with Listener, Transform Message, and Upload external data into new data set and start processing](/mulesoft/current/en-us/salesforce-analytics-cloud-connector/3.19/_images/salesforce-analytics-studio-use-case.png) ## Use Case: XML Paste the XML code provided in this example into the Configuration XML tab in Anypoint Studio to experiment with the flow described in the previous section. Keep in mind that you must still provide the `metadata.json` file describing the schema of the dataset to be created. ```xml ``` ## See Also - [Introduction to Anypoint Connectors](https://docs.mulesoft.com/connectors/introduction/introduction-to-anypoint-connectors) - [Salesforce Einstein Analytics Connector on Exchange](https://www.mulesoft.com/exchange/com.mulesoft.connectors/mule-sfdc-analytics-connector/) - [Salesforce External Data API](https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_ext_data.meta/bi_dev_guide_ext_data/). - For Required Parameters for Basic Username Password Authentication see [Salesforce Basic Authentication](https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_calls_login.htm) - For Required Parameters for the OAuth 2.0 Configuration see [Salesforce OAuth 2.0](https://help.salesforce.com/s/articleView?id=remoteaccess_oauth_web_server_flow.htm&language=en_US&type=5) - For Required Parameters for the OAuth 2.0 JWT Bearer Configuration see [Salesforce OAuth 2.0 JWT Bearer](https://help.salesforce.com/s/articleView?id=remoteaccess_oauth_jwt_flow.htm&language=en_US&type=5) - For Required Parameters for the OAuth 2.0 SAML Bearer Configuration see [Salesforce OAuth 2.0 SAML Bearer](https://help.salesforce.com/s/articleView?id=remoteaccess_oauth_SAML_bearer_flow.htm&language=en_US&type=5) - [Salesforce Help](https://help.salesforce.com) --- product: Salesforce Einstein Analytics Connector version: 3.20 --- # Salesforce Einstein Analytics Cloud Connector 3.20 > For the full documentation index, see: https://docs.mulesoft.com/llms.txt Anypoint Connector for Salesforce Einstein Analytics Cloud (Salesforce Analytics Connector) enables you to connect to the Salesforce Analytics Cloud application using the Salesforce External Data API. The connector exposes convenient methods for creating, deleting, and populating datasets into the Salesforce Analytics Cloud system. Load data into Salesforce Einstein Analytics Cloud from many different data sources whether they are on-premise or on the cloud. Go beyond .csv files with this connector. For software requirements and compatibility information, see [Salesforce Einstein Analytics Connector Release Notes](https://docs.mulesoft.com/release-notes/connector/salesforce-analytics-connector-release-notes-mule-4). ## Before You Begin To use this connector, you must be familiar with: - The Salesforce Einstein Analytics API - Anypoint connectors - Mule runtime engine (Mule) - Elements in a Mule flow - Global elements - How to create a Mule app using Anypoint Studio Before creating an app, you must have login credentials to test your connection to your target resource. ## POM File Information The Apache Maven `pom.xml` file generated by Anypoint Studio contains dependencies for a Mule app. If you code a Mule app manually, include this XML snippet in your `pom.xml` file to enable access to this connector: ```xml com.mulesoft.connectors mule-sfdc-analytics-connector x.x.x mule-plugin ``` Replace `x.x.x` with the version that corresponds to the connector you are using. To obtain the most up-to-date `pom.xml` file information: 1. Go to [Anypoint Exchange](https://www.mulesoft.com/exchange/). 2. In Exchange, click **Login** and supply your Anypoint Platform username and password. 3. In Exchange, search for ``. 4. Select the connector. 5. Click **Dependency Snippets** near the upper right of the screen. ### Required Parameters for Basic Username Password Authentication - Username Salesforce Einstein Analytics username - Password Password that corresponds with the Salesforce Einstein Analytics username - Security Token Corresponding security token ![Basic Authentication config window](/mulesoft/current/en-us/salesforce-analytics-cloud-connector/3.20/_images/salesforce-analytics-dc-basic-auth.png) > [!NOTE] The `Username Password` connection type is only supported for Salesforce API v64.0 and > earlier versions. ### Required Parameters for the OAuth 2.0 Configuration - Consumer Key Consumer key for the Salesforce connected app. - Consumer Secret Consumer secret for the connector to access Salesforce. ![OAuth Authentication config window](/mulesoft/current/en-us/salesforce-analytics-cloud-connector/3.20/_images/salesforce-analytics-dc-oauth.png) ### Required Parameters for the OAuth 2.0 JWT Bearer Configuration - Consumer Key Consumer key for the Salesforce connected app - Keystore File See [Generating a Keystore File](#generating-keystore) - Store Password Password for the keystore - Principal Salesforce username ![JWT Bearer config window](/mulesoft/current/en-us/salesforce-analytics-cloud-connector/3.20/_images/salesforce-analytics-dc-jwt.png) #### Required Parameters for the OAuth 2.0 SAML Bearer Configuration - Consumer Key Consumer key for the Salesforce connected app. - Keystore File Path to the keystore used to sign data during authentication. Note that only the Java keystore format is allowed. - Store Password Keystore password. - Principal Salesforce username. ![SAML Bearer config window](/mulesoft/current/en-us/salesforce-analytics-cloud-connector/3.20/_images/salesforce-analytics-saml.png) #### Generating a Keystore File The Keystore is the path to the keystore used to sign data during authentication. The following example shows how to generate a JKS file: 1. Go to your Mule workspace, and open the command prompt (for Windows) or Terminal (for Mac). 2. Type `keytool -genkeypair -alias salesforce-cert -keyalg RSA -keystore salesforce-cert.jks` and press enter. 3. Enter the following details: - Password for the keystore - Your first name and last name - Your organization unit - Name of your city, state, and the two letter code of your county The system generates a Java keystore file containing a private or public key-pair in your workspace. 4. Provide the file path for the keystore in your connector configuration. Type `keytool -exportcert -alias salesforce-cert -file salesforce-cert.crt -keystore salesforce-cert.jks` and press enter. The system now exports the public key from the keystore into the workspace. This is the public key that you need to enter in your Salesforce instance. 5. Verify that you have both the keystore (`salesforce-cert.jks`) and the public key (`salesforce-cert.crt`) files in your workspace. ## Add the Connector in Studio 1. In Studio, create a Mule project. 2. In the Mule Palette view, click **(X) Search in Exchange**. 3. In **Add Modules to Project**, type "analytics" in the search field. 4. Click this connector’s name in **Available modules**. 5. Click **Add**. 6. Click **Finish**. ### Configure the Connector in Studio 1. Drag the desired Salesforce Analytics operation to the Studio canvas. 2. To create a global element for the connector, on the **General** tab, configure the authentication as described in the authentication sections. The following authentication connection types are available: - [Username Password](#basic-authentication) - [OAuth 2.0](#oauth2) - [OAuth 2.0 JWT](#oauth2-jwt) - [OAuth 2.0 SAML Bearer](#oauth2-saml) 3. Configure these fields to upload external data into new dataset and start the processing operation: - Type Type of the records to insert. Select a JSON file representing the schema of the dataset to create. - Records DataSense expression; the records to insert. - Operation Specify the operation to use when you’re loading data into a dataset. - Description - Label - Data Set Name ![Upload external data operation properties window](/mulesoft/current/en-us/salesforce-analytics-cloud-connector/3.20/_images/salesforce-analytics-studio-upload-and-start.png) ### Username Password On the **General** tab of the **Global Element Properties** screen, enter the following information to configure Basic authentication: - **Username** Enter the Salesforce username. - **Password** Enter the corresponding password. - **Security Token** Enter the corresponding security token. The following screenshot shows an example of configuring Basic authentication: ![Username Password global element properties window](/mulesoft/current/en-us/salesforce-analytics-cloud-connector/3.20/_images/salesforce-analytics-basic.png) Figure 1. Basic authentication fields > [!NOTE] The `Username Password` connection type is only supported for Salesforce API v64.0 and > earlier versions. ### OAuth 2.0 On the **General** tab of the **Global Element Properties** screen, enter the following information to configure OAuth 2.0 authentication: - **Consumer Key** Consumer key for the Salesforce connected app. - **Consumer Secret** Consumer secret for the connector to access Salesforce. The following screenshot shows an example of configuring the OAuth 2.0 authentication: ![OAuth v2.0 global element properties window](/mulesoft/current/en-us/salesforce-analytics-cloud-connector/3.20/_images/salesforce-analytics-oauth.png) Figure 2. OAuth 2.0 authentication fields ### OAuth 2.0 JWT On the **General** tab of the **Global Element Properties** screen, enter the following information to configure OAuth 2.0 JWT authentication: - **Consumer Key** Consumer key for the Salesforce connected app - **Keystore File** See [Generating a Keystore File](#generating-keystore) - **Store Password** Password for the keystore - **Principal** Salesforce username ![OAuth JWT global element properties window](/mulesoft/current/en-us/salesforce-analytics-cloud-connector/3.20/_images/salesforce-analytics-jwt.png) Figure 3. OAuth 2.0 JWT authentication fields ### OAuth 2.0 SAML Bearer On the **General** tab of the **Global Element Properties** screen, enter the following information to configure OAuth 2.0 SAML Bearer authentication: - **Consumer Key** Consumer key for the Salesforce connected app - **Keystore File** See [Generating a Keystore File](#generating-keystore) - **Store Password** Password for the keystore. - Principal Salesforce username ![OAuth 2.0 SAML Bearer global element properties window](/mulesoft/current/en-us/salesforce-analytics-cloud-connector/3.20/_images/salesforce-analytics-saml.png) Figure 4. OAuth 2.0 SAML Bearer authentication fields ## Use Case: Studio This use case provides an example of how to use the Salesforce Einstein Analytics Connector and contains this end to end flow: - Uses an HTTP Listener as the input source. - Configures a connection using a username, password, and the security token. - Uses a Salesforce Analytics operation with the parameters to use. The example that follows contains these components: - HTTP Listener, which accepts data from HTTP requests. - Transform Message, which provides the records input data required by Salesforce Einstein Analytics connector. ```dataweave %dw 2.0 output application/java --- [ { "Id": 1, "Country": "Country", "City": "City", "Year": 428742153, "Distance": 284644936, "Currencies": [ "EUR", "USD" ], "CreationDate": "20/12/2017" as Date {format: "dd/MM/yyyy"} }, { "Id": 2, "Country": "Country", "City": "City", "Year": 1432651434, "Distance": 1336594394, "Currencies": [ "EUR", "USD", "HUF" ], "CreationDate": "20/12/2017" as Date {format: "dd/MM/yyyy"} } ] ``` - Salesforce Analytics Connector, which connects with Salesforce, and performs an operation to push data into Salesforce Einstein Analytics Cloud. ![Studio flow with Listener, Transform Message, and Upload external data into new data set and start processing](/mulesoft/current/en-us/salesforce-analytics-cloud-connector/3.20/_images/salesforce-analytics-studio-use-case.png) ## Use Case: XML Paste the XML code provided in this example into the Configuration XML tab in Anypoint Studio to experiment with the flow described in the previous section. Keep in mind that you must still provide the `metadata.json` file describing the schema of the dataset to be created. ```xml ``` ## See Also - [Introduction to Anypoint Connectors](https://docs.mulesoft.com/connectors/introduction/introduction-to-anypoint-connectors) - [Salesforce Einstein Analytics Connector on Exchange](https://www.mulesoft.com/exchange/com.mulesoft.connectors/mule-sfdc-analytics-connector/) - [Salesforce External Data API](https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_ext_data.meta/bi_dev_guide_ext_data/). - For Required Parameters for Basic Username Password Authentication see [Salesforce Basic Authentication](https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_calls_login.htm) - For Required Parameters for the OAuth 2.0 Configuration see [Salesforce OAuth 2.0](https://help.salesforce.com/s/articleView?id=remoteaccess_oauth_web_server_flow.htm&language=en_US&type=5) - For Required Parameters for the OAuth 2.0 JWT Bearer Configuration see [Salesforce OAuth 2.0 JWT Bearer](https://help.salesforce.com/s/articleView?id=remoteaccess_oauth_jwt_flow.htm&language=en_US&type=5) - For Required Parameters for the OAuth 2.0 SAML Bearer Configuration see [Salesforce OAuth 2.0 SAML Bearer](https://help.salesforce.com/s/articleView?id=remoteaccess_oauth_SAML_bearer_flow.htm&language=en_US&type=5) - [Salesforce Help](https://help.salesforce.com) --- product: Salesforce Einstein Analytics Connector version: 3.21 --- # Salesforce Einstein Analytics Cloud Connector 3.21 > For the full documentation index, see: https://docs.mulesoft.com/llms.txt Anypoint Connector for Salesforce Einstein Analytics Cloud (Salesforce Analytics Connector) enables you to connect to the Salesforce Analytics Cloud application using the Salesforce External Data API. The connector exposes convenient methods for creating, deleting, and populating datasets into the Salesforce Analytics Cloud system. Load data into Salesforce Einstein Analytics Cloud from many different data sources whether they are on-premise or on the cloud. Go beyond .csv files with this connector. For software requirements and compatibility information, see [Salesforce Einstein Analytics Connector Release Notes](https://docs.mulesoft.com/release-notes/connector/salesforce-analytics-connector-release-notes-mule-4). ## Before You Begin To use this connector, you must be familiar with: - The Salesforce Einstein Analytics API - Anypoint connectors - Mule runtime engine (Mule) - Elements in a Mule flow - Global elements - How to create a Mule app using Anypoint Studio Before creating an app, you must have login credentials to test your connection to your target resource. ## POM File Information The Apache Maven `pom.xml` file generated by Anypoint Studio contains dependencies for a Mule app. If you code a Mule app manually, include this XML snippet in your `pom.xml` file to enable access to this connector: ```xml com.mulesoft.connectors mule-sfdc-analytics-connector x.x.x mule-plugin ``` Replace `x.x.x` with the version that corresponds to the connector you are using. To obtain the most up-to-date `pom.xml` file information: 1. Go to [Anypoint Exchange](https://www.mulesoft.com/exchange/). 2. In Exchange, click **Login** and supply your Anypoint Platform username and password. 3. In Exchange, search for ``. 4. Select the connector. 5. Click **Dependency Snippets** near the upper right of the screen. ### Required Parameters for Basic Username Password Authentication - Username Salesforce Einstein Analytics username - Password Password that corresponds with the Salesforce Einstein Analytics username - Security Token Corresponding security token ![Basic Authentication config window](/mulesoft/current/en-us/salesforce-analytics-cloud-connector/3.21/_images/salesforce-analytics-dc-basic-auth.png) > [!NOTE] The `Username Password` connection type is only supported for Salesforce API v64.0 and > earlier versions. ### Required Parameters for the OAuth 2.0 Configuration - Consumer Key Consumer key for the Salesforce connected app. - Consumer Secret Consumer secret for the connector to access Salesforce. ![OAuth Authentication config window](/mulesoft/current/en-us/salesforce-analytics-cloud-connector/3.21/_images/salesforce-analytics-dc-oauth.png) ### Required Parameters for the OAuth 2.0 JWT Bearer Configuration - Consumer Key Consumer key for the Salesforce connected app - Keystore File See [Generating a Keystore File](#generating-keystore) - Store Password Password for the keystore - Principal Salesforce username ![JWT Bearer config window](/mulesoft/current/en-us/salesforce-analytics-cloud-connector/3.21/_images/salesforce-analytics-dc-jwt.png) #### Required Parameters for the OAuth 2.0 SAML Bearer Configuration - Consumer Key Consumer key for the Salesforce connected app. - Keystore File Path to the keystore used to sign data during authentication. Note that only the Java keystore format is allowed. - Store Password Keystore password. - Principal Salesforce username. ![SAML Bearer config window](/mulesoft/current/en-us/salesforce-analytics-cloud-connector/3.21/_images/salesforce-analytics-saml.png) #### Generating a Keystore File The Keystore is the path to the keystore used to sign data during authentication. The following example shows how to generate a JKS file: 1. Go to your Mule workspace, and open the command prompt (for Windows) or Terminal (for Mac). 2. Type `keytool -genkeypair -alias salesforce-cert -keyalg RSA -keystore salesforce-cert.jks` and press enter. 3. Enter the following details: - Password for the keystore - Your first name and last name - Your organization unit - Name of your city, state, and the two letter code of your county The system generates a Java keystore file containing a private or public key-pair in your workspace. 4. Provide the file path for the keystore in your connector configuration. Type `keytool -exportcert -alias salesforce-cert -file salesforce-cert.crt -keystore salesforce-cert.jks` and press enter. The system now exports the public key from the keystore into the workspace. This is the public key that you need to enter in your Salesforce instance. 5. Verify that you have both the keystore (`salesforce-cert.jks`) and the public key (`salesforce-cert.crt`) files in your workspace. ## Add the Connector in Studio 1. In Studio, create a Mule project. 2. In the Mule Palette view, click **(X) Search in Exchange**. 3. In **Add Modules to Project**, type "analytics" in the search field. 4. Click this connector’s name in **Available modules**. 5. Click **Add**. 6. Click **Finish**. ### Configure the Connector in Studio 1. Drag the desired Salesforce Analytics operation to the Studio canvas. 2. To create a global element for the connector, on the **General** tab, configure the authentication as described in the authentication sections. The following authentication connection types are available: - [Username Password](#basic-authentication) - [OAuth 2.0](#oauth2) - [OAuth 2.0 JWT](#oauth2-jwt) - [OAuth 2.0 SAML Bearer](#oauth2-saml) 3. Configure these fields to upload external data into new dataset and start the processing operation: - Type Type of the records to insert. Select a JSON file representing the schema of the dataset to create. - Records DataSense expression; the records to insert. - Operation Specify the operation to use when you’re loading data into a dataset. - Description - Label - Data Set Name ![Upload external data operation properties window](/mulesoft/current/en-us/salesforce-analytics-cloud-connector/3.21/_images/salesforce-analytics-studio-upload-and-start.png) ### Username Password On the **General** tab of the **Global Element Properties** screen, enter the following information to configure Basic authentication: - **Username** Enter the Salesforce username. - **Password** Enter the corresponding password. - **Security Token** Enter the corresponding security token. The following screenshot shows an example of configuring Basic authentication: ![Username Password global element properties window](/mulesoft/current/en-us/salesforce-analytics-cloud-connector/3.21/_images/salesforce-analytics-basic.png) Figure 1. Basic authentication fields > [!NOTE] The `Username Password` connection type is only supported for Salesforce API v64.0 and > earlier versions. ### OAuth 2.0 On the **General** tab of the **Global Element Properties** screen, enter the following information to configure OAuth 2.0 authentication: - **Consumer Key** Consumer key for the Salesforce connected app. - **Consumer Secret** Consumer secret for the connector to access Salesforce. The following screenshot shows an example of configuring the OAuth 2.0 authentication: ![OAuth v2.0 global element properties window](/mulesoft/current/en-us/salesforce-analytics-cloud-connector/3.21/_images/salesforce-analytics-oauth.png) Figure 2. OAuth 2.0 authentication fields ### OAuth 2.0 JWT On the **General** tab of the **Global Element Properties** screen, enter the following information to configure OAuth 2.0 JWT authentication: - **Consumer Key** Consumer key for the Salesforce connected app - **Keystore File** See [Generating a Keystore File](#generating-keystore) - **Store Password** Password for the keystore - **Principal** Salesforce username ![OAuth JWT global element properties window](/mulesoft/current/en-us/salesforce-analytics-cloud-connector/3.21/_images/salesforce-analytics-jwt.png) Figure 3. OAuth 2.0 JWT authentication fields ### OAuth 2.0 SAML Bearer On the **General** tab of the **Global Element Properties** screen, enter the following information to configure OAuth 2.0 SAML Bearer authentication: - **Consumer Key** Consumer key for the Salesforce connected app - **Keystore File** See [Generating a Keystore File](#generating-keystore) - **Store Password** Password for the keystore. - Principal Salesforce username ![OAuth 2.0 SAML Bearer global element properties window](/mulesoft/current/en-us/salesforce-analytics-cloud-connector/3.21/_images/salesforce-analytics-saml.png) Figure 4. OAuth 2.0 SAML Bearer authentication fields ## Use Case: Studio This use case provides an example of how to use the Salesforce Einstein Analytics Connector and contains this end to end flow: - Uses an HTTP Listener as the input source. - Configures a connection using a username, password, and the security token. - Uses a Salesforce Analytics operation with the parameters to use. The example that follows contains these components: - HTTP Listener, which accepts data from HTTP requests. - Transform Message, which provides the records input data required by Salesforce Einstein Analytics connector. ```dataweave %dw 2.0 output application/java --- [ { "Id": 1, "Country": "Country", "City": "City", "Year": 428742153, "Distance": 284644936, "Currencies": [ "EUR", "USD" ], "CreationDate": "20/12/2017" as Date {format: "dd/MM/yyyy"} }, { "Id": 2, "Country": "Country", "City": "City", "Year": 1432651434, "Distance": 1336594394, "Currencies": [ "EUR", "USD", "HUF" ], "CreationDate": "20/12/2017" as Date {format: "dd/MM/yyyy"} } ] ``` - Salesforce Analytics Connector, which connects with Salesforce, and performs an operation to push data into Salesforce Einstein Analytics Cloud. ![Studio flow with Listener, Transform Message, and Upload external data into new data set and start processing](/mulesoft/current/en-us/salesforce-analytics-cloud-connector/3.21/_images/salesforce-analytics-studio-use-case.png) ## Use Case: XML Paste the XML code provided in this example into the Configuration XML tab in Anypoint Studio to experiment with the flow described in the previous section. Keep in mind that you must still provide the `metadata.json` file describing the schema of the dataset to be created. ```xml ``` ## See Also - [Introduction to Anypoint Connectors](https://docs.mulesoft.com/connectors/introduction/introduction-to-anypoint-connectors) - [Salesforce Einstein Analytics Connector on Exchange](https://www.mulesoft.com/exchange/com.mulesoft.connectors/mule-sfdc-analytics-connector/) - [Salesforce External Data API](https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_ext_data.meta/bi_dev_guide_ext_data/). - For Required Parameters for Basic Username Password Authentication see [Salesforce Basic Authentication](https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_calls_login.htm) - For Required Parameters for the OAuth 2.0 Configuration see [Salesforce OAuth 2.0](https://help.salesforce.com/s/articleView?id=remoteaccess_oauth_web_server_flow.htm&language=en_US&type=5) - For Required Parameters for the OAuth 2.0 JWT Bearer Configuration see [Salesforce OAuth 2.0 JWT Bearer](https://help.salesforce.com/s/articleView?id=remoteaccess_oauth_jwt_flow.htm&language=en_US&type=5) - For Required Parameters for the OAuth 2.0 SAML Bearer Configuration see [Salesforce OAuth 2.0 SAML Bearer](https://help.salesforce.com/s/articleView?id=remoteaccess_oauth_SAML_bearer_flow.htm&language=en_US&type=5) - [Salesforce Help](https://help.salesforce.com) --- product: Salesforce Einstein Analytics Connector version: 4.0 is-latest-version: true --- # Salesforce Einstein Analytics Cloud Connector 4.0 > For the full documentation index, see: https://docs.mulesoft.com/llms.txt Anypoint Connector for Salesforce Einstein Analytics Cloud (Salesforce Analytics Connector) enables you to connect to the Salesforce Analytics Cloud application using the Salesforce External Data API. The connector exposes convenient methods for creating, deleting, and populating datasets into the Salesforce Analytics Cloud system. Load data into Salesforce Einstein Analytics Cloud from many different data sources whether they are on-premise or on the cloud. Go beyond .csv files with this connector. For software requirements and compatibility information, see [Salesforce Einstein Analytics Connector Release Notes](https://docs.mulesoft.com/release-notes/connector/salesforce-analytics-connector-release-notes-mule-4). ## Before You Begin To use this connector, you must be familiar with: - The Salesforce Einstein Analytics API - Anypoint connectors - Mule runtime engine (Mule) - Elements in a Mule flow - Global elements - How to create a Mule app using Anypoint Studio Before creating an app, you must have login credentials to test your connection to your target resource. ## POM File Information The Apache Maven `pom.xml` file generated by Anypoint Studio contains dependencies for a Mule app. If you code a Mule app manually, include this XML snippet in your `pom.xml` file to enable access to this connector: ```xml com.mulesoft.connectors mule-sfdc-analytics-connector x.x.x mule-plugin ``` Replace `x.x.x` with the version that corresponds to the connector you are using. To obtain the most up-to-date `pom.xml` file information: 1. Go to [Anypoint Exchange](https://www.mulesoft.com/exchange/). 2. In Exchange, click **Login** and supply your Anypoint Platform username and password. 3. In Exchange, search for ``. 4. Select the connector. 5. Click **Dependency Snippets** near the upper right of the screen. ### Required Parameters for Basic Username Password Authentication - Username Salesforce Einstein Analytics username - Password Password that corresponds with the Salesforce Einstein Analytics username - Security Token Corresponding security token ![Basic Authentication config window](/mulesoft/current/en-us/salesforce-analytics-cloud-connector/latest/_images/salesforce-analytics-dc-basic-auth.png) > [!NOTE] The `Username Password` connection type is only supported for Salesforce API v64.0 and > earlier versions. ### Required Parameters for the OAuth 2.0 Configuration - Consumer Key Consumer key for the Salesforce connected app. - Consumer Secret Consumer secret for the connector to access Salesforce. ![OAuth Authentication config window](/mulesoft/current/en-us/salesforce-analytics-cloud-connector/latest/_images/salesforce-analytics-dc-oauth.png) ### Required Parameters for the OAuth Client Credentials Configuration - Client ID The OAuth client ID value as registered with the service provider. - Client Secret The OAuth client secret value as registered with the service provider. ### Required Parameters for the OAuth 2.0 JWT Bearer Configuration - Consumer Key Consumer key for the Salesforce connected app - Keystore File See [Generating a Keystore File](#generating-keystore) - Store Password Password for the keystore - Principal Salesforce username ![JWT Bearer config window](/mulesoft/current/en-us/salesforce-analytics-cloud-connector/latest/_images/salesforce-analytics-dc-jwt.png) #### Required Parameters for the OAuth 2.0 SAML Bearer Configuration - Consumer Key Consumer key for the Salesforce connected app. - Keystore File Path to the keystore used to sign data during authentication. Note that only the Java keystore format is allowed. - Store Password Keystore password. - Principal Salesforce username. ![SAML Bearer config window](/mulesoft/current/en-us/salesforce-analytics-cloud-connector/latest/_images/salesforce-analytics-saml.png) #### Generating a Keystore File The Keystore is the path to the keystore used to sign data during authentication. The following example shows how to generate a JKS file: 1. Go to your Mule workspace, and open the command prompt (for Windows) or Terminal (for Mac). 2. Type `keytool -genkeypair -alias salesforce-cert -keyalg RSA -keystore salesforce-cert.jks` and press enter. 3. Enter the following details: - Password for the keystore - Your first name and last name - Your organization unit - Name of your city, state, and the two letter code of your county The system generates a Java keystore file containing a private or public key-pair in your workspace. 4. Provide the file path for the keystore in your connector configuration. Type `keytool -exportcert -alias salesforce-cert -file salesforce-cert.crt -keystore salesforce-cert.jks` and press enter. The system now exports the public key from the keystore into the workspace. This is the public key that you need to enter in your Salesforce instance. 5. Verify that you have both the keystore (`salesforce-cert.jks`) and the public key (`salesforce-cert.crt`) files in your workspace. ## Add the Connector in Studio 1. In Studio, create a Mule project. 2. In the Mule Palette view, click **(X) Search in Exchange**. 3. In **Add Modules to Project**, type "analytics" in the search field. 4. Click this connector’s name in **Available modules**. 5. Click **Add**. 6. Click **Finish**. ### Configure the Connector in Studio 1. Drag the desired Salesforce Analytics operation to the Studio canvas. 2. To create a global element for the connector, on the **General** tab, configure the authentication as described in the authentication sections. The following authentication connection types are available: - [Username Password](#basic-authentication) - [OAuth 2.0](#oauth2) - [OAuth 2.0 Client Credentials](#oauth-cc) - [OAuth 2.0 JWT](#oauth2-jwt) - [OAuth 2.0 SAML Bearer](#oauth2-saml) 3. Configure these fields to upload external data into new dataset and start the processing operation: - Type Type of the records to insert. Select a JSON file representing the schema of the dataset to create. - Records DataSense expression; the records to insert. - Operation Specify the operation to use when you’re loading data into a dataset. - Description - Label - Data Set Name ![Upload external data operation properties window](/mulesoft/current/en-us/salesforce-analytics-cloud-connector/latest/_images/salesforce-analytics-studio-upload-and-start.png) ### Username Password On the **General** tab of the **Global Element Properties** screen, enter the following information to configure Basic authentication: - **Username** Enter the Salesforce username. - **Password** Enter the corresponding password. - **Security Token** Enter the corresponding security token. The following screenshot shows an example of configuring Basic authentication: ![Username Password global element properties window](/mulesoft/current/en-us/salesforce-analytics-cloud-connector/latest/_images/salesforce-analytics-basic.png) Figure 1. Basic authentication fields > [!NOTE] The `Username Password` connection type is only supported for Salesforce API v64.0 and > earlier versions. ### OAuth 2.0 On the **General** tab of the **Global Element Properties** screen, enter the following information to configure OAuth 2.0 authentication: - **Consumer Key** Consumer key for the Salesforce connected app. - **Consumer Secret** Consumer secret for the connector to access Salesforce. The following screenshot shows an example of configuring the OAuth 2.0 authentication: ![OAuth v2.0 global element properties window](/mulesoft/current/en-us/salesforce-analytics-cloud-connector/latest/_images/salesforce-analytics-oauth.png) Figure 2. OAuth 2.0 authentication fields ### OAuth 2.0 Client Credentials On the **General** tab of the **Global Element Properties** screen, enter the following information to configure OAuth 2.0 Client Credentials authentication: - **Client ID** The OAuth client ID value as registered with the service provider. - **Client Secret** The OAuth client secret value as registered with the service provider. - **Token URL** The service provider’s token endpoint URL. Default: `https://{domain}.my.salesforce.com/services/oauth2/token` The following example shows an XML configuration for OAuth 2.0 Client Credentials authentication: ```xml ``` ### OAuth 2.0 JWT On the **General** tab of the **Global Element Properties** screen, enter the following information to configure OAuth 2.0 JWT authentication: - **Consumer Key** Consumer key for the Salesforce connected app - **Keystore File** See [Generating a Keystore File](#generating-keystore) - **Store Password** Password for the keystore - **Principal** Salesforce username ![OAuth JWT global element properties window](/mulesoft/current/en-us/salesforce-analytics-cloud-connector/latest/_images/salesforce-analytics-jwt.png) Figure 3. OAuth 2.0 JWT authentication fields ### OAuth 2.0 SAML Bearer On the **General** tab of the **Global Element Properties** screen, enter the following information to configure OAuth 2.0 SAML Bearer authentication: - **Consumer Key** Consumer key for the Salesforce connected app - **Keystore File** See [Generating a Keystore File](#generating-keystore) - **Store Password** Password for the keystore. - Principal Salesforce username ![OAuth 2.0 SAML Bearer global element properties window](/mulesoft/current/en-us/salesforce-analytics-cloud-connector/latest/_images/salesforce-analytics-saml.png) Figure 4. OAuth 2.0 SAML Bearer authentication fields ## Use Case: Studio This use case provides an example of how to use the Salesforce Einstein Analytics Connector and contains this end to end flow: - Uses an HTTP Listener as the input source. - Configures a connection using a username, password, and the security token. - Uses a Salesforce Analytics operation with the parameters to use. The example that follows contains these components: - HTTP Listener, which accepts data from HTTP requests. - Transform Message, which provides the records input data required by Salesforce Einstein Analytics connector. ```dataweave %dw 2.0 output application/java --- [ { "Id": 1, "Country": "Country", "City": "City", "Year": 428742153, "Distance": 284644936, "Currencies": [ "EUR", "USD" ], "CreationDate": "20/12/2017" as Date {format: "dd/MM/yyyy"} }, { "Id": 2, "Country": "Country", "City": "City", "Year": 1432651434, "Distance": 1336594394, "Currencies": [ "EUR", "USD", "HUF" ], "CreationDate": "20/12/2017" as Date {format: "dd/MM/yyyy"} } ] ``` - Salesforce Analytics Connector, which connects with Salesforce, and performs an operation to push data into Salesforce Einstein Analytics Cloud. ![Studio flow with Listener, Transform Message, and Upload external data into new data set and start processing](/mulesoft/current/en-us/salesforce-analytics-cloud-connector/latest/_images/salesforce-analytics-studio-use-case.png) ## Use Case: XML Paste the XML code provided in this example into the Configuration XML tab in Anypoint Studio to experiment with the flow described in the previous section. Keep in mind that you must still provide the `metadata.json` file describing the schema of the dataset to be created. ```xml ``` ## See Also - [Introduction to Anypoint Connectors](https://docs.mulesoft.com/connectors/introduction/introduction-to-anypoint-connectors) - [Salesforce Einstein Analytics Connector on Exchange](https://www.mulesoft.com/exchange/com.mulesoft.connectors/mule-sfdc-analytics-connector/) - [Salesforce External Data API](https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_ext_data.meta/bi_dev_guide_ext_data/). - For Required Parameters for Basic Username Password Authentication see [Salesforce Basic Authentication](https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_calls_login.htm) - For Required Parameters for the OAuth 2.0 Configuration see [Salesforce OAuth 2.0](https://help.salesforce.com/s/articleView?id=remoteaccess_oauth_web_server_flow.htm&language=en_US&type=5) - For Required Parameters for the OAuth 2.0 Client Credentials Configuration see [Salesforce OAuth 2.0 Client Credentials Flow](https://help.salesforce.com/s/articleView?id=sf.remoteaccess_oauth_client_credentials_flow.htm&language=en_US&type=5) - For Required Parameters for the OAuth 2.0 JWT Bearer Configuration see [Salesforce OAuth 2.0 JWT Bearer](https://help.salesforce.com/s/articleView?id=remoteaccess_oauth_jwt_flow.htm&language=en_US&type=5) - For Required Parameters for the OAuth 2.0 SAML Bearer Configuration see [Salesforce OAuth 2.0 SAML Bearer](https://help.salesforce.com/s/articleView?id=remoteaccess_oauth_SAML_bearer_flow.htm&language=en_US&type=5) - [Salesforce Help](https://help.salesforce.com) --- product: Salesforce Einstein Analytics Connector version: 3.18 --- # Salesforce Einstein Analytics Connector 3.18 Reference > For the full documentation index, see: https://docs.mulesoft.com/llms.txt ## Default Configuration ### Parameters
NameTypeDescriptionDefault ValueRequired

Name

String

The name for this configuration. Connectors reference the configuration with this name.

x

Connection

  • Basic Username and Password

  • OAuth v2.0

  • OAuth JWT

  • OAuth 2.0 SAML Bearer

The connection types to provide to this configuration.

x

Expiration Policy

Configures the minimum amount of time that a dynamic configuration instance can remain idle before Mule considers it eligible for expiration. This does not mean that the instance expires at the exact moment that it becomes eligible. Mule purges the instances as appropriate.

## Connection Types ### Basic Username and Password #### Parameters
NameTypeDescriptionDefault ValueRequired

TLS configuration

If the protocol is configured as HTTPS, then you must also configure the keystore configuration.

Username

String

Username used to initialize the session.

x

Password

String

Password used to authenticate the user.

x

Security Token

String

User’s security token. It can be omitted if your IP has been added to the allow list on Salesforce.

Authorization URL

String

Web service URL responsible for user authentication. This is the URL for the endpoint that is configured to handle SOAP authentication requests.

There is no default value, but if left empty the connector uses the latest API version

Reconnection

When the application is deployed, a connectivity test is performed on all connectors. If set to true, deployment fails if the test doesn’t pass after exhausting the associated reconnection strategy.

Read Timeout

Number

Specifies the amount of time, in milliseconds, that the consumer waits for a response before it times out. Default value is 0, which means infinite.

0

Read Timeout Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

Time unit that qualifies the Read Timeout.

MILLISECONDS

Connection Timeout

Number

Specifies the amount of time, in milliseconds, that the consumer attempts to establish a connection before it times out. Default value is 0, which means infinite.

0

Connection Timeout Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

Time unit that qualifies the Connection Timeout.

MILLISECONDS

Host

String

Host name of the proxy. If this property is not set then no proxy is used, otherwise a proxy is used, but a proxy host must be specified.

Port

Number

Port of the proxy. If host is set then this property must be set and cannot be a negative number.

Username

String

Username used to authenticate against the proxy. If this property is not set then no authentication is used against the proxy, otherwise this value must be specified.

Password

String

Password used to authenticate against the proxy.

### OAuth v2.0 Use OAuth 2.0 to delegate user authentication to the service hosting the user account. For more information, refer to [Configuring OAuth 2.0 for Connectors](https://docs.mulesoft.com/connectors/introduction/intro-config-oauth2), [Configuring OAuth 2.0 for Connectors on CloudHub](https://docs.mulesoft.com/connectors/introduction/intro-config-oauth2-cloudhub), or [OAuth Support in the SDK](https://docs.mulesoft.com/mule-sdk/latest/oauth). #### Parameters
NameTypeDescriptionDefault ValueRequired

Display

Enumeration, one of:

  • PAGE

  • POPUP

  • TOUCH

PAGE

Immediate

Enumeration, one of:

  • TRUE

  • FALSE

FALSE

Prompt

Enumeration, one of:

  • LOGIN

  • CONSENT

LOGIN

Reconnection

When the application is deployed, a connectivity test is performed on all connectors. If set to true, deployment fails if the test doesn’t pass after exhausting the associated reconnection strategy.

Read Timeout

Number

Specifies the amount of time, in milliseconds, that the consumer waits for a response before it times out. Default value is 0, which means infinite.

0

Read Timeout Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

Time unit that qualifies the Read Timeout.

MILLISECONDS

Connection Timeout

Number

Specifies the amount of time, in milliseconds, that the consumer attempts to establish a connection before it times out. Default value is 0, which means infinite.

0

Connection Timeout Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

Time unit that qualifies the Connection Timeout.

MILLISECONDS

Host

String

Host name of the proxy. If this property is not set, then no proxy is used, otherwise a proxy is used, and a proxy host must be specified.

Port

Number

Port of the proxy. If host is set, then this property must be set and cannot be a negative number.

Username

String

Username used to authenticate against the proxy. If this property is not set, then no authentication is used against the proxy, otherwise this value must be specified.

Password

String

Password used to authenticate against the proxy.

Consumer Key

String

The OAuth consumerKey as registered with the service provider.

x

Consumer Secret

String

The OAuth consumerSecret as registered with the service provider.

x

Authorization Url

String

The service provider’s authorization endpoint URL.

https://login.salesforce.com/services/oauth2/authorize

Access Token Url

String

The service provider’s accessToken endpoint URL.

https://login.salesforce.com/services/oauth2/token

Scopes

String

The OAuth scopes to request during the dance. If not provided, it defaults to those in the annotation.

Resource Owner Id

String

The resourceOwnerId that each component should use if it doesn’t reference otherwise.

Before

String

The name of a flow to execute immediately before starting the OAuth dance.

After

String

The name of a flow to execute immediately after an accessToken is received.

Listener Config

String

A reference to a <http:listener-config /> to use to create the listener that catches the access token callback endpoint.

x

Callback Path

String

The path of the access token callback endpoint.

x

Authorize Path

String

The path of the local HTTP endpoint that triggers the OAuth dance.

x

External Callback Url

String

Specify the URL the OAuth provider should use to access the callback if the callback endpoint is behind a proxy or will be accessed through a non-direct URL.

Object Store

String

A reference to the object store to use to store each resource owner ID’s data. If not specified, the Mule automatically provisions the default object store.

### OAuth JWT #### Parameters
NameTypeDescriptionDefault ValueRequired

TLS configuration

If the protocol is configured as HTTPS, then you must also configure the keystore configuration.

Read Timeout

Number

Specifies the amount of time, in milliseconds, that the consumer waits for a response before it times out. The default value is 0, which means infinite.

0

Read Timeout Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

Time unit that qualifies the Read Timeout.

MILLISECONDS

Connection Timeout

Number

Specifies the amount of time, in milliseconds, that the consumer attempts to establish a connection before it times out. The default value is 0, which means infinite.

0

Connection Timeout Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

Time Unit that qualifies the Connection Timeout.

MILLISECONDS

Host

String

Host name of the proxy. Required if a proxy is used. If this property is not set, then no proxy is used.

Port

Number

Port of the proxy. If a Host is set, this property must also be set, and cannot be a negative number.

Username

String

Username used to authenticate against the proxy. Required if using authentication against the proxy. If this property is not set, then no authentication is used against the proxy.

Password

String

Password used to authenticate against the proxy.

Consumer Key

String

Consumer key for the Salesforce-connected app.

x

Key Store

String

Path to the keystore used to sign data during authentication.

x

Store Password

String

Password of the keystore.

x

Principal

String

Username of the Salesforce user on whose behalf to take action.

x

Token Endpoint

String

URL pointing to the server responsible for providing the authentication token. According to Salesforce, this URL is https://login.salesforce.com/services/oauth2/token. If implementing for a community, the URL is https://acme.force.com/customers/services/oauth2/token, where acme.force.com/customers is your own community URL.

https://login.salesforce.com/services/oauth2/token

Audience Url

String

Identifies the authorization server as an intended audience. The authorization server must verify that it is an intended audience for the token.

Use the authorization server’s URL for the audience value, for example: https://login.salesforce.com, https://test.salesforce.com, or +https://community.force.com/customers= if implementing for a community.

Reconnection

When the application is deployed, a connectivity test is performed on all connectors. If set to true, deployment fails if the test doesn’t pass after exhausting the associated reconnection strategy.

### OAuth 2.0 SAML Bearer #### Parameters
NameTypeDescriptionDefault ValueRequired

TLS configuration

If the protocol is configured as HTTPS, then you must also configure the keystore configuration.

Read Timeout

Number

Specifies the amount of time, in milliseconds, that the consumer waits for a response before it times out. The default value is 0, which means infinite.

0

Read Timeout Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

Time Unit that qualifies the Read Timeout.

MILLISECONDS

Connection Timeout

Number

Specifies the amount of time, in milliseconds, that the consumer attempts to establish a connection before it times out. The default value is 0, which means infinite.

0

Connection Timeout Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

Time Unit that qualifies the Connection Timeout.

MILLISECONDS

Host

String

Host name of the proxy. Required if a proxy is used. If this property is not set, then no proxy is used.

Port

Number

Port of the proxy. If a Host is set, this property must also be set, and cannot be a negative number.

Username

String

Username used to authenticate against the proxy. If this property is not set then no authentication is used against the proxy, otherwise this value must be specified.

Password

String

Password used to authenticate against the proxy.

Consumer Key

String

Consumer key for Salesforce-connected app.

x

Key Store

String

Path to the keystore used to sign data during authentication.

x

Store Password

String

Password of the keystore.

x

Principal

String

Username of the Salesforce user on whose behalf to take action.

x

Token Endpoint

String

URL pointing to the server responsible for providing the authentication token. According to Salesforce, this URL is https://login.salesforce.com/services/oauth2/token. If implementing for a community, the URL is https://acme.force.com/customers/services/oauth2/token, where acme.force.com/customers is your own community URL.

https://login.salesforce.com/services/oauth2/token

Reconnection

When the application is deployed, a connectivity test is performed on all connectors. If set to true, deployment fails if the test doesn’t pass after exhausting the associated reconnection strategy.

#### List of Operations - [Create Data Set](#createDataSet) - [Delete Data Set](#deleteDataSet) - [Start Data Processing](#startDataProcessing) - [Unauthorize](#unauthorize) - [Upload External Data](#uploadExternalData) - [Upload External Data Into New Dataset And Start Processing](#uploadExternalDataIntoNewDataSetAndStartProcessing) ## Operations ### Create Data Set `` Creates a new dataset (InsightsExternalData record) in the Salesforce Analytics Cloud system and returns the identifier (InsightsExternalData ID) of the created dataset within the Salesforce Analytics Cloud system. #### Parameters
NameTypeDescriptionDefault ValueRequired

Configuration

String

The name of the configuration to use.

x

Type

String

Represents the type of the dataset to be created

x

Operation

Enumeration, one of:

  • APPEND

  • OVERWRITE

  • UPSERT

  • DELETE

x

Description

String

x

Label

String

x

Data Set Name

String

x

Edgemart Container

String

Notification Sent

Enumeration, one of:

  • ALWAYS

  • FAILURES

  • NEVER

  • WARNINGS

Notification Email

String

Mode

Enumeration, one of:

  • INCREMENTAL

  • NONE

Mode.

NONE

Target Variable

String

The variable name where to store the operation’s output.

Target Value

String

An expression to evaluate against the operation’s output. The outcome of that expression is stored in the target variable.

#[payload]

Reconnection Strategy

A retry strategy in case of connectivity errors.

#### Output

Type

String

#### For Configurations - [Default Configuration](#salesforce-analytics) #### Throws - SALESFORCE-ANALYTICS:CONNECTIVITY - SALESFORCE-ANALYTICS:ERROR\_RESPONSE - SALESFORCE-ANALYTICS:INVALID\_SESSION - SALESFORCE-ANALYTICS:INVALID\_REQUEST\_DATA - SALESFORCE-ANALYTICS:RETRY\_EXHAUSTED - SALESFORCE-ANALYTICS:TRANSACTION - SALESFORCE-ANALYTICS:UNKNOWN ### Delete Data Set `` Deletes the specified dataset (InsightsExternalData record) from the Salesforce Analytics Cloud system. For more information about limitations, refer to [The InsightsExternalData Object](https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_ext_data.meta/bi_dev_guide_ext_data/bi_ext_data_object_externaldata.htm). #### Parameters
NameTypeDescriptionDefault ValueRequired

Configuration

String

The name of the configuration to use

x

Data Set Id

String

Identifier of the dataset (InsightsExternalData ID) to delete.

x

Reconnection Strategy

A retry strategy in case of connectivity errors

#### For Configurations - [Default Configuration](#salesforce-analytics) #### Throws - SALESFORCE-ANALYTICS:CONNECTIVITY - SALESFORCE-ANALYTICS:ERROR\_RESPONSE - SALESFORCE-ANALYTICS:INVALID\_SESSION - SALESFORCE-ANALYTICS:INVALID\_REQUEST\_DATA - SALESFORCE-ANALYTICS:RETRY\_EXHAUSTED - SALESFORCE-ANALYTICS:TRANSACTION - SALESFORCE-ANALYTICS:UNKNOWN ### Start Data Processing `` Tells the Salesforce Analytics Cloud system to start processing the records uploaded at this point into a dataset. #### Parameters
NameTypeDescriptionDefault ValueRequired

Configuration

String

The name of the configuration to use

x

Data Set Id

String

Identifier of the dataset (InsightsExternalData ID) to process.

x

Reconnection Strategy

A retry strategy in case of connectivity errors

#### For Configurations - [Default Configuration](#salesforce-analytics) #### Throws - SALESFORCE-ANALYTICS:CONNECTIVITY - SALESFORCE-ANALYTICS:ERROR\_RESPONSE - SALESFORCE-ANALYTICS:INVALID\_SESSION - SALESFORCE-ANALYTICS:INVALID\_REQUEST\_DATA - SALESFORCE-ANALYTICS:RETRY\_EXHAUSTED - SALESFORCE-ANALYTICS:TRANSACTION - SALESFORCE-ANALYTICS:UNKNOWN ### Unauthorize `` Deletes all the access token information of a given resource owner ID so that it’s impossible to execute any operation for the user without repeating the authorization dance. #### Parameters
NameTypeDescriptionDefault ValueRequired

Configuration

String

The name of the configuration to use

x

Resource Owner Id

String

The ID of the resource owner for whom to invalidate access

#### For Configurations - [Default Configuration](#salesforce-analytics) ### Upload External Data `` Creates an InsightsExternalDataPart record. The InsightsExternalDataPart object works with the InsightsExternalData ID. After you insert a row into the InsightsExternalData object, you can create part objects to split up your data into parts. #### Parameters
NameTypeDescriptionDefault ValueRequired

Configuration

String

The name of the configuration to use.

x

Data Set Id

String

Identifier of a dataset (InsightsExternalData ID) within the Salesforce Analytics Cloud system.

x

Records

Array of Object

List of records to insert.

#[payload]

Target Variable

String

The variable name where to store the operation’s output.

Target Value

String

An expression to evaluate against the operation’s output. The outcome of that expression is stored in the target variable.

#[payload]

Reconnection Strategy

A retry strategy in case of connectivity errors.

#### Output

Type

#### For Configurations - [Default Configuration](#salesforce-analytics) #### Throws - SALESFORCE-ANALYTICS:CONNECTIVITY - SALESFORCE-ANALYTICS:ERROR\_RESPONSE - SALESFORCE-ANALYTICS:INVALID\_SESSION - SALESFORCE-ANALYTICS:INVALID\_REQUEST\_DATA - SALESFORCE-ANALYTICS:RETRY\_EXHAUSTED - SALESFORCE-ANALYTICS:TRANSACTION - SALESFORCE-ANALYTICS:UNKNOWN ### Upload External Data Into New Dataset And Start Processing `` Creates a dataset (InsightsExternalData), uploads data into InsightsExternalDataPart records, and tells the Salesforce Analytics Cloud system to start processing the uploaded data to create the Salesforce dataset. #### Parameters
NameTypeDescriptionDefault ValueRequired

Configuration

String

The name of the configuration to use.

x

Type

String

Type of the records to insert. This automatically computes based on metadata extracted from the provided file that contains the configuration element.

x

Records

Array of Object

List of records to insert.

#[payload]

Operation

Enumeration, one of:

  • APPEND

  • DELETE

  • OVERWRITE

  • UPSERT

x

Description

String

x

Label

String

x

Data Set Name

String

x

Edgemart Container

String

Notification Sent

Enumeration, one of:

  • ALWAYS

  • FAILURES

  • NEVER

  • WARNINGS

Notification Email

String

Mode

Enumeration, one of:

  • INCREMENTAL

  • NONE

Mode.

NONE

Target Variable

String

The variable name where to store the operation’s output.

Target Value

String

An expression to evaluate against the operation’s output. The outcome of that expression is stored in the target variable.

#[payload]

Reconnection Strategy

A retry strategy in case of connectivity errors.

#### Output

Type

String

#### For Configurations - [Default Configuration](#salesforce-analytics) #### Throws - SALESFORCE-ANALYTICS:CONNECTIVITY - SALESFORCE-ANALYTICS:ERROR\_RESPONSE - SALESFORCE-ANALYTICS:INVALID\_SESSION - SALESFORCE-ANALYTICS:INVALID\_REQUEST\_DATA - SALESFORCE-ANALYTICS:RETRY\_EXHAUSTED - SALESFORCE-ANALYTICS:TRANSACTION - SALESFORCE-ANALYTICS:UNKNOWN ## Types ### Tls
FieldTypeDescriptionDefault ValueRequired

Enabled Protocols

String

A comma-separated list of protocols enabled for this context.

Enabled Cipher Suites

String

A comma-separated list of cipher suites enabled for this context.

Trust Store

Key Store

Revocation Check

### Trust Store
FieldTypeDescriptionDefault ValueRequired

Path

String

The location of the trust store, which will be resolved relative to the current classpath and file system, if possible.

Password

String

The password used to protect the trust store.

Type

String

The type of store used.

Algorithm

String

The algorithm used by the trust store.

Insecure

Boolean

If true, no certificate validations will be performed, rendering connections vulnerable to attacks. Use at your own risk.

### Key Store
FieldTypeDescriptionDefault ValueRequired

Path

String

The location of the trust store, which will be resolved relative to the current classpath and file system, if possible.

Type

String

The type of store used.

Alias

String

When the keystore contains many private keys, this attribute indicates the alias of the key to use. If not defined, the first key in the file is used by default.

Key Password

String

The password used to protect the private key.

Password

String

The password used to protect the keystore.

Algorithm

String

The algorithm used by the keystore.

### Standard Revocation Check
FieldTypeDescriptionDefault ValueRequired

Only End Entities

Boolean

Only verify the last element of the certificate chain.

Prefer Crls

Boolean

Try CRL instead of OCSP first.

No Fallback

Boolean

Do not use the secondary checking method (the one not selected before).

Soft Fail

Boolean

Avoid verification failure when the revocation server can not be reached or is busy.

### Custom OCSP Responder
FieldTypeDescriptionDefault ValueRequired

Url

String

The URL of the OCSP responder.

Cert Alias

String

Alias of the signing certificate for the OCSP response (must be in the trust store), if present.

### CRL File
FieldTypeDescriptionDefault ValueRequired

Path

String

The path to the CRL file.

### Reconnection
FieldTypeDescriptionDefault ValueRequired

Fails Deployment

Boolean

When the application is deployed, a connectivity test is performed on all connectors. If set to true, deployment fails if the test doesn’t pass after exhausting the associated reconnection strategy.

Reconnection Strategy

The reconnection strategy to use

### Reconnect
FieldTypeDescriptionDefault ValueRequired

Frequency

Number

How often to reconnect (in milliseconds)

Count

Number

The number of reconnection attempts to make

### Reconnect Forever
FieldTypeDescriptionDefault ValueRequired

Frequency

Number

How often in milliseconds to reconnect

### Expiration Policy
FieldTypeDescriptionDefault ValueRequired

Max Idle Time

Number

A scalar time value for the maximum amount of time a dynamic configuration instance is allowed to be idle before it’s considered eligible for expiration.

Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

A time unit that qualifies the maxIdleTime attribute.

### Bulk Operation Result
FieldTypeDescriptionDefault ValueRequired

Id

Any

Items

Array of Bulk Item

Successful

Boolean

### Bulk Item
FieldTypeDescriptionDefault ValueRequired

Exception

Any

Id

Any

Message

String

Payload

Object

Status Code

String

Successful

Boolean

## See Also [Salesforce Help](https://help.salesforce.com) --- product: Salesforce Einstein Analytics Connector version: 3.19 --- # Salesforce Einstein Analytics Connector 3.19 Reference > For the full documentation index, see: https://docs.mulesoft.com/llms.txt ## Default Configuration ### Parameters
NameTypeDescriptionDefault ValueRequired

Name

String

The name for this configuration. Connectors reference the configuration with this name.

x

Connection

  • Basic Username and Password

  • OAuth v2.0

  • OAuth JWT

  • OAuth 2.0 SAML Bearer

The connection types to provide to this configuration. Note that the Username Password connection type is only supported for Salesforce API v64.0 and earlier versions.

x

Expiration Policy

Configures the minimum amount of time that a dynamic configuration instance can remain idle before Mule considers it eligible for expiration. This does not mean that the instance expires at the exact moment that it becomes eligible. Mule purges the instances as appropriate.

## Connection Types ### Basic Username and Password > [!NOTE] The `Username Password` connection type is only supported for Salesforce API v64.0 and > earlier versions. #### Parameters
NameTypeDescriptionDefault ValueRequired

TLS configuration

If the protocol is configured as HTTPS, then you must also configure the keystore configuration.

Username

String

Username used to initialize the session.

x

Password

String

Password used to authenticate the user.

x

Security Token

String

User’s security token. It can be omitted if your IP has been added to the allow list on Salesforce.

Authorization URL

String

Web service URL responsible for user authentication. This is the URL for the endpoint that is configured to handle SOAP authentication requests.

There is no default value, but if left empty the connector uses the latest API version

Reconnection

When the application is deployed, a connectivity test is performed on all connectors. If set to true, deployment fails if the test doesn’t pass after exhausting the associated reconnection strategy.

Read Timeout

Number

Specifies the amount of time, in milliseconds, that the consumer waits for a response before it times out. Default value is 0, which means infinite.

0

Read Timeout Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

Time unit that qualifies the Read Timeout.

MILLISECONDS

Connection Timeout

Number

Specifies the amount of time, in milliseconds, that the consumer attempts to establish a connection before it times out. Default value is 0, which means infinite.

0

Connection Timeout Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

Time unit that qualifies the Connection Timeout.

MILLISECONDS

Host

String

Host name of the proxy. If this property is not set then no proxy is used, otherwise a proxy is used, but a proxy host must be specified.

Port

Number

Port of the proxy. If host is set then this property must be set and cannot be a negative number.

Username

String

Username used to authenticate against the proxy. If this property is not set then no authentication is used against the proxy, otherwise this value must be specified.

Password

String

Password used to authenticate against the proxy.

### OAuth v2.0 Use OAuth 2.0 to delegate user authentication to the service hosting the user account. For more information, refer to [Configuring OAuth 2.0 for Connectors](https://docs.mulesoft.com/connectors/introduction/intro-config-oauth2), [Configuring OAuth 2.0 for Connectors on CloudHub](https://docs.mulesoft.com/connectors/introduction/intro-config-oauth2-cloudhub), or [OAuth Support in the SDK](https://docs.mulesoft.com/mule-sdk/latest/oauth). #### Parameters
NameTypeDescriptionDefault ValueRequired

Display

Enumeration, one of:

  • PAGE

  • POPUP

  • TOUCH

PAGE

Immediate

Enumeration, one of:

  • TRUE

  • FALSE

FALSE

Prompt

Enumeration, one of:

  • LOGIN

  • CONSENT

LOGIN

Reconnection

When the application is deployed, a connectivity test is performed on all connectors. If set to true, deployment fails if the test doesn’t pass after exhausting the associated reconnection strategy.

Read Timeout

Number

Specifies the amount of time, in milliseconds, that the consumer waits for a response before it times out. Default value is 0, which means infinite.

0

Read Timeout Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

Time unit that qualifies the Read Timeout.

MILLISECONDS

Connection Timeout

Number

Specifies the amount of time, in milliseconds, that the consumer attempts to establish a connection before it times out. Default value is 0, which means infinite.

0

Connection Timeout Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

Time unit that qualifies the Connection Timeout.

MILLISECONDS

Host

String

Host name of the proxy. If this property is not set, then no proxy is used, otherwise a proxy is used, and a proxy host must be specified.

Port

Number

Port of the proxy. If host is set, then this property must be set and cannot be a negative number.

Username

String

Username used to authenticate against the proxy. If this property is not set, then no authentication is used against the proxy, otherwise this value must be specified.

Password

String

Password used to authenticate against the proxy.

Consumer Key

String

The OAuth consumerKey as registered with the service provider.

x

Consumer Secret

String

The OAuth consumerSecret as registered with the service provider.

x

Authorization Url

String

The service provider’s authorization endpoint URL.

https://login.salesforce.com/services/oauth2/authorize

Access Token Url

String

The service provider’s accessToken endpoint URL.

https://login.salesforce.com/services/oauth2/token

Scopes

String

The OAuth scopes to request during the dance. If not provided, it defaults to those in the annotation.

Resource Owner Id

String

The resourceOwnerId that each component should use if it doesn’t reference otherwise.

Before

String

The name of a flow to execute immediately before starting the OAuth dance.

After

String

The name of a flow to execute immediately after an accessToken is received.

Listener Config

String

A reference to a <http:listener-config /> to use to create the listener that catches the access token callback endpoint.

x

Callback Path

String

The path of the access token callback endpoint.

x

Authorize Path

String

The path of the local HTTP endpoint that triggers the OAuth dance.

x

External Callback Url

String

Specify the URL the OAuth provider should use to access the callback if the callback endpoint is behind a proxy or will be accessed through a non-direct URL.

Object Store

String

A reference to the object store to use to store each resource owner ID’s data. If not specified, the Mule automatically provisions the default object store.

### OAuth JWT #### Parameters
NameTypeDescriptionDefault ValueRequired

TLS configuration

If the protocol is configured as HTTPS, then you must also configure the keystore configuration.

Read Timeout

Number

Specifies the amount of time, in milliseconds, that the consumer waits for a response before it times out. The default value is 0, which means infinite.

0

Read Timeout Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

Time unit that qualifies the Read Timeout.

MILLISECONDS

Connection Timeout

Number

Specifies the amount of time, in milliseconds, that the consumer attempts to establish a connection before it times out. The default value is 0, which means infinite.

0

Connection Timeout Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

Time Unit that qualifies the Connection Timeout.

MILLISECONDS

Host

String

Host name of the proxy. Required if a proxy is used. If this property is not set, then no proxy is used.

Port

Number

Port of the proxy. If a Host is set, this property must also be set, and cannot be a negative number.

Username

String

Username used to authenticate against the proxy. Required if using authentication against the proxy. If this property is not set, then no authentication is used against the proxy.

Password

String

Password used to authenticate against the proxy.

Consumer Key

String

Consumer key for the Salesforce-connected app.

x

Key Store

String

Path to the keystore used to sign data during authentication.

x

Store Password

String

Password of the keystore.

x

Principal

String

Username of the Salesforce user on whose behalf to take action.

x

Token Endpoint

String

URL pointing to the server responsible for providing the authentication token. According to Salesforce, this URL is https://login.salesforce.com/services/oauth2/token. If implementing for a community, the URL is https://acme.force.com/customers/services/oauth2/token, where acme.force.com/customers is your own community URL.

https://login.salesforce.com/services/oauth2/token

Audience Url

String

Identifies the authorization server as an intended audience. The authorization server must verify that it is an intended audience for the token.

Use the authorization server’s URL for the audience value, for example: https://login.salesforce.com, https://test.salesforce.com, or +https://community.force.com/customers= if implementing for a community.

Reconnection

When the application is deployed, a connectivity test is performed on all connectors. If set to true, deployment fails if the test doesn’t pass after exhausting the associated reconnection strategy.

### OAuth 2.0 SAML Bearer #### Parameters
NameTypeDescriptionDefault ValueRequired

TLS configuration

If the protocol is configured as HTTPS, then you must also configure the keystore configuration.

Read Timeout

Number

Specifies the amount of time, in milliseconds, that the consumer waits for a response before it times out. The default value is 0, which means infinite.

0

Read Timeout Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

Time Unit that qualifies the Read Timeout.

MILLISECONDS

Connection Timeout

Number

Specifies the amount of time, in milliseconds, that the consumer attempts to establish a connection before it times out. The default value is 0, which means infinite.

0

Connection Timeout Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

Time Unit that qualifies the Connection Timeout.

MILLISECONDS

Host

String

Host name of the proxy. Required if a proxy is used. If this property is not set, then no proxy is used.

Port

Number

Port of the proxy. If a Host is set, this property must also be set, and cannot be a negative number.

Username

String

Username used to authenticate against the proxy. If this property is not set then no authentication is used against the proxy, otherwise this value must be specified.

Password

String

Password used to authenticate against the proxy.

Consumer Key

String

Consumer key for Salesforce-connected app.

x

Key Store

String

Path to the keystore used to sign data during authentication.

x

Store Password

String

Password of the keystore.

x

Principal

String

Username of the Salesforce user on whose behalf to take action.

x

Token Endpoint

String

URL pointing to the server responsible for providing the authentication token. According to Salesforce, this URL is https://login.salesforce.com/services/oauth2/token. If implementing for a community, the URL is https://acme.force.com/customers/services/oauth2/token, where acme.force.com/customers is your own community URL.

https://login.salesforce.com/services/oauth2/token

Reconnection

When the application is deployed, a connectivity test is performed on all connectors. If set to true, deployment fails if the test doesn’t pass after exhausting the associated reconnection strategy.

#### List of Operations - [Create Data Set](#createDataSet) - [Delete Data Set](#deleteDataSet) - [Start Data Processing](#startDataProcessing) - [Unauthorize](#unauthorize) - [Upload External Data](#uploadExternalData) - [Upload External Data Into New Dataset And Start Processing](#uploadExternalDataIntoNewDataSetAndStartProcessing) ## Operations ### Create Data Set `` Creates a new dataset (InsightsExternalData record) in the Salesforce Analytics Cloud system and returns the identifier (InsightsExternalData ID) of the created dataset within the Salesforce Analytics Cloud system. #### Parameters
NameTypeDescriptionDefault ValueRequired

Configuration

String

The name of the configuration to use.

x

Type

String

Represents the type of the dataset to be created

x

Operation

Enumeration, one of:

  • APPEND

  • OVERWRITE

  • UPSERT

  • DELETE

x

Description

String

x

Label

String

x

Data Set Name

String

x

Edgemart Container

String

Notification Sent

Enumeration, one of:

  • ALWAYS

  • FAILURES

  • NEVER

  • WARNINGS

Notification Email

String

Mode

Enumeration, one of:

  • INCREMENTAL

  • NONE

Mode.

NONE

Target Variable

String

The variable name where to store the operation’s output.

Target Value

String

An expression to evaluate against the operation’s output. The outcome of that expression is stored in the target variable.

#[payload]

Reconnection Strategy

A retry strategy in case of connectivity errors.

#### Output

Type

String

#### For Configurations - [Default Configuration](#salesforce-analytics) #### Throws - SALESFORCE-ANALYTICS:CONNECTIVITY - SALESFORCE-ANALYTICS:ERROR\_RESPONSE - SALESFORCE-ANALYTICS:INVALID\_SESSION - SALESFORCE-ANALYTICS:INVALID\_REQUEST\_DATA - SALESFORCE-ANALYTICS:RETRY\_EXHAUSTED - SALESFORCE-ANALYTICS:TRANSACTION - SALESFORCE-ANALYTICS:UNKNOWN ### Delete Data Set `` Deletes the specified dataset (InsightsExternalData record) from the Salesforce Analytics Cloud system. For more information about limitations, refer to [The InsightsExternalData Object](https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_ext_data.meta/bi_dev_guide_ext_data/bi_ext_data_object_externaldata.htm). #### Parameters
NameTypeDescriptionDefault ValueRequired

Configuration

String

The name of the configuration to use

x

Data Set Id

String

Identifier of the dataset (InsightsExternalData ID) to delete.

x

Reconnection Strategy

A retry strategy in case of connectivity errors

#### For Configurations - [Default Configuration](#salesforce-analytics) #### Throws - SALESFORCE-ANALYTICS:CONNECTIVITY - SALESFORCE-ANALYTICS:ERROR\_RESPONSE - SALESFORCE-ANALYTICS:INVALID\_SESSION - SALESFORCE-ANALYTICS:INVALID\_REQUEST\_DATA - SALESFORCE-ANALYTICS:RETRY\_EXHAUSTED - SALESFORCE-ANALYTICS:TRANSACTION - SALESFORCE-ANALYTICS:UNKNOWN ### Start Data Processing `` Tells the Salesforce Analytics Cloud system to start processing the records uploaded at this point into a dataset. #### Parameters
NameTypeDescriptionDefault ValueRequired

Configuration

String

The name of the configuration to use

x

Data Set Id

String

Identifier of the dataset (InsightsExternalData ID) to process.

x

Reconnection Strategy

A retry strategy in case of connectivity errors

#### For Configurations - [Default Configuration](#salesforce-analytics) #### Throws - SALESFORCE-ANALYTICS:CONNECTIVITY - SALESFORCE-ANALYTICS:ERROR\_RESPONSE - SALESFORCE-ANALYTICS:INVALID\_SESSION - SALESFORCE-ANALYTICS:INVALID\_REQUEST\_DATA - SALESFORCE-ANALYTICS:RETRY\_EXHAUSTED - SALESFORCE-ANALYTICS:TRANSACTION - SALESFORCE-ANALYTICS:UNKNOWN ### Unauthorize `` Deletes all the access token information of a given resource owner ID so that it’s impossible to execute any operation for the user without repeating the authorization dance. #### Parameters
NameTypeDescriptionDefault ValueRequired

Configuration

String

The name of the configuration to use

x

Resource Owner Id

String

The ID of the resource owner for whom to invalidate access

#### For Configurations - [Default Configuration](#salesforce-analytics) ### Upload External Data `` Creates an InsightsExternalDataPart record. The InsightsExternalDataPart object works with the InsightsExternalData ID. After you insert a row into the InsightsExternalData object, you can create part objects to split up your data into parts. #### Parameters
NameTypeDescriptionDefault ValueRequired

Configuration

String

The name of the configuration to use.

x

Data Set Id

String

Identifier of a dataset (InsightsExternalData ID) within the Salesforce Analytics Cloud system.

x

Records

Array of Object

List of records to insert.

#[payload]

Target Variable

String

The variable name where to store the operation’s output.

Target Value

String

An expression to evaluate against the operation’s output. The outcome of that expression is stored in the target variable.

#[payload]

Reconnection Strategy

A retry strategy in case of connectivity errors.

#### Output

Type

#### For Configurations - [Default Configuration](#salesforce-analytics) #### Throws - SALESFORCE-ANALYTICS:CONNECTIVITY - SALESFORCE-ANALYTICS:ERROR\_RESPONSE - SALESFORCE-ANALYTICS:INVALID\_SESSION - SALESFORCE-ANALYTICS:INVALID\_REQUEST\_DATA - SALESFORCE-ANALYTICS:RETRY\_EXHAUSTED - SALESFORCE-ANALYTICS:TRANSACTION - SALESFORCE-ANALYTICS:UNKNOWN ### Upload External Data Into New Dataset And Start Processing `` Creates a dataset (InsightsExternalData), uploads data into InsightsExternalDataPart records, and tells the Salesforce Analytics Cloud system to start processing the uploaded data to create the Salesforce dataset. #### Parameters
NameTypeDescriptionDefault ValueRequired

Configuration

String

The name of the configuration to use.

x

Type

String

Type of the records to insert. This automatically computes based on metadata extracted from the provided file that contains the configuration element.

x

Records

Array of Object

List of records to insert.

#[payload]

Operation

Enumeration, one of:

  • APPEND

  • DELETE

  • OVERWRITE

  • UPSERT

x

Description

String

x

Label

String

x

Data Set Name

String

x

Edgemart Container

String

Notification Sent

Enumeration, one of:

  • ALWAYS

  • FAILURES

  • NEVER

  • WARNINGS

Notification Email

String

Mode

Enumeration, one of:

  • INCREMENTAL

  • NONE

Mode.

NONE

Target Variable

String

The variable name where to store the operation’s output.

Target Value

String

An expression to evaluate against the operation’s output. The outcome of that expression is stored in the target variable.

#[payload]

Reconnection Strategy

A retry strategy in case of connectivity errors.

#### Output

Type

String

#### For Configurations - [Default Configuration](#salesforce-analytics) #### Throws - SALESFORCE-ANALYTICS:CONNECTIVITY - SALESFORCE-ANALYTICS:ERROR\_RESPONSE - SALESFORCE-ANALYTICS:INVALID\_SESSION - SALESFORCE-ANALYTICS:INVALID\_REQUEST\_DATA - SALESFORCE-ANALYTICS:RETRY\_EXHAUSTED - SALESFORCE-ANALYTICS:TRANSACTION - SALESFORCE-ANALYTICS:UNKNOWN ## Types ### Tls
FieldTypeDescriptionDefault ValueRequired

Enabled Protocols

String

A comma-separated list of protocols enabled for this context.

Enabled Cipher Suites

String

A comma-separated list of cipher suites enabled for this context.

Trust Store

Key Store

Revocation Check

### Trust Store
FieldTypeDescriptionDefault ValueRequired

Path

String

The location of the trust store, which will be resolved relative to the current classpath and file system, if possible.

Password

String

The password used to protect the trust store.

Type

String

The type of store used.

Algorithm

String

The algorithm used by the trust store.

Insecure

Boolean

If true, no certificate validations will be performed, rendering connections vulnerable to attacks. Use at your own risk.

### Key Store
FieldTypeDescriptionDefault ValueRequired

Path

String

The location of the trust store, which will be resolved relative to the current classpath and file system, if possible.

Type

String

The type of store used.

Alias

String

When the keystore contains many private keys, this attribute indicates the alias of the key to use. If not defined, the first key in the file is used by default.

Key Password

String

The password used to protect the private key.

Password

String

The password used to protect the keystore.

Algorithm

String

The algorithm used by the keystore.

### Standard Revocation Check
FieldTypeDescriptionDefault ValueRequired

Only End Entities

Boolean

Only verify the last element of the certificate chain.

Prefer Crls

Boolean

Try CRL instead of OCSP first.

No Fallback

Boolean

Do not use the secondary checking method (the one not selected before).

Soft Fail

Boolean

Avoid verification failure when the revocation server can not be reached or is busy.

### Custom OCSP Responder
FieldTypeDescriptionDefault ValueRequired

Url

String

The URL of the OCSP responder.

Cert Alias

String

Alias of the signing certificate for the OCSP response (must be in the trust store), if present.

### CRL File
FieldTypeDescriptionDefault ValueRequired

Path

String

The path to the CRL file.

### Reconnection
FieldTypeDescriptionDefault ValueRequired

Fails Deployment

Boolean

When the application is deployed, a connectivity test is performed on all connectors. If set to true, deployment fails if the test doesn’t pass after exhausting the associated reconnection strategy.

Reconnection Strategy

The reconnection strategy to use

### Reconnect
FieldTypeDescriptionDefault ValueRequired

Frequency

Number

How often to reconnect (in milliseconds)

Count

Number

The number of reconnection attempts to make

### Reconnect Forever
FieldTypeDescriptionDefault ValueRequired

Frequency

Number

How often in milliseconds to reconnect

### Expiration Policy
FieldTypeDescriptionDefault ValueRequired

Max Idle Time

Number

A scalar time value for the maximum amount of time a dynamic configuration instance is allowed to be idle before it’s considered eligible for expiration.

Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

A time unit that qualifies the maxIdleTime attribute.

### Bulk Operation Result
FieldTypeDescriptionDefault ValueRequired

Id

Any

Items

Array of Bulk Item

Successful

Boolean

### Bulk Item
FieldTypeDescriptionDefault ValueRequired

Exception

Any

Id

Any

Message

String

Payload

Object

Status Code

String

Successful

Boolean

## See Also [Salesforce Help](https://help.salesforce.com) --- product: Salesforce Einstein Analytics Connector version: 3.20 --- # Salesforce Einstein Analytics Connector 3.20 Reference > For the full documentation index, see: https://docs.mulesoft.com/llms.txt ## Default Configuration ### Parameters
NameTypeDescriptionDefault ValueRequired

Name

String

The name for this configuration. Connectors reference the configuration with this name.

x

Connection

  • Basic Username and Password

  • OAuth v2.0

  • OAuth JWT

  • OAuth 2.0 SAML Bearer

The connection types to provide to this configuration. Note that the Username Password connection type is only supported for Salesforce API v64.0 and earlier versions.

x

Expiration Policy

Configures the minimum amount of time that a dynamic configuration instance can remain idle before Mule considers it eligible for expiration. This does not mean that the instance expires at the exact moment that it becomes eligible. Mule purges the instances as appropriate.

## Connection Types ### Basic Username and Password > [!NOTE] The `Username Password` connection type is only supported for Salesforce API v64.0 and > earlier versions. #### Parameters
NameTypeDescriptionDefault ValueRequired

TLS configuration

If the protocol is configured as HTTPS, then you must also configure the keystore configuration.

Username

String

Username used to initialize the session.

x

Password

String

Password used to authenticate the user.

x

Security Token

String

User’s security token. It can be omitted if your IP has been added to the allow list on Salesforce.

Authorization URL

String

Web service URL responsible for user authentication. This is the URL for the endpoint that is configured to handle SOAP authentication requests.

There is no default value, but if left empty the connector uses the latest API version

Reconnection

When the application is deployed, a connectivity test is performed on all connectors. If set to true, deployment fails if the test doesn’t pass after exhausting the associated reconnection strategy.

Read Timeout

Number

Specifies the amount of time, in milliseconds, that the consumer waits for a response before it times out. Default value is 0, which means infinite.

0

Read Timeout Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

Time unit that qualifies the Read Timeout.

MILLISECONDS

Connection Timeout

Number

Specifies the amount of time, in milliseconds, that the consumer attempts to establish a connection before it times out. Default value is 0, which means infinite.

0

Connection Timeout Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

Time unit that qualifies the Connection Timeout.

MILLISECONDS

Host

String

Host name of the proxy. If this property is not set then no proxy is used, otherwise a proxy is used, but a proxy host must be specified.

Port

Number

Port of the proxy. If host is set then this property must be set and cannot be a negative number.

Username

String

Username used to authenticate against the proxy. If this property is not set then no authentication is used against the proxy, otherwise this value must be specified.

Password

String

Password used to authenticate against the proxy.

### OAuth v2.0 Use OAuth 2.0 to delegate user authentication to the service hosting the user account. For more information, refer to [Configuring OAuth 2.0 for Connectors](https://docs.mulesoft.com/connectors/introduction/intro-config-oauth2), [Configuring OAuth 2.0 for Connectors on CloudHub](https://docs.mulesoft.com/connectors/introduction/intro-config-oauth2-cloudhub), or [OAuth Support in the SDK](https://docs.mulesoft.com/mule-sdk/latest/oauth). #### Parameters
NameTypeDescriptionDefault ValueRequired

Display

Enumeration, one of:

  • PAGE

  • POPUP

  • TOUCH

PAGE

Immediate

Enumeration, one of:

  • TRUE

  • FALSE

FALSE

Prompt

Enumeration, one of:

  • LOGIN

  • CONSENT

LOGIN

Reconnection

When the application is deployed, a connectivity test is performed on all connectors. If set to true, deployment fails if the test doesn’t pass after exhausting the associated reconnection strategy.

Read Timeout

Number

Specifies the amount of time, in milliseconds, that the consumer waits for a response before it times out. Default value is 0, which means infinite.

0

Read Timeout Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

Time unit that qualifies the Read Timeout.

MILLISECONDS

Connection Timeout

Number

Specifies the amount of time, in milliseconds, that the consumer attempts to establish a connection before it times out. Default value is 0, which means infinite.

0

Connection Timeout Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

Time unit that qualifies the Connection Timeout.

MILLISECONDS

Host

String

Host name of the proxy. If this property is not set, then no proxy is used, otherwise a proxy is used, and a proxy host must be specified.

Port

Number

Port of the proxy. If host is set, then this property must be set and cannot be a negative number.

Username

String

Username used to authenticate against the proxy. If this property is not set, then no authentication is used against the proxy, otherwise this value must be specified.

Password

String

Password used to authenticate against the proxy.

Consumer Key

String

The OAuth consumerKey as registered with the service provider.

x

Consumer Secret

String

The OAuth consumerSecret as registered with the service provider.

x

Authorization Url

String

The service provider’s authorization endpoint URL.

https://login.salesforce.com/services/oauth2/authorize

Access Token Url

String

The service provider’s accessToken endpoint URL.

https://login.salesforce.com/services/oauth2/token

Scopes

String

The OAuth scopes to request during the dance. If not provided, it defaults to those in the annotation.

Resource Owner Id

String

The resourceOwnerId that each component should use if it doesn’t reference otherwise.

Before

String

The name of a flow to execute immediately before starting the OAuth dance.

After

String

The name of a flow to execute immediately after an accessToken is received.

Listener Config

String

A reference to a <http:listener-config /> to use to create the listener that catches the access token callback endpoint.

x

Callback Path

String

The path of the access token callback endpoint.

x

Authorize Path

String

The path of the local HTTP endpoint that triggers the OAuth dance.

x

External Callback Url

String

Specify the URL the OAuth provider should use to access the callback if the callback endpoint is behind a proxy or will be accessed through a non-direct URL.

Object Store

String

A reference to the object store to use to store each resource owner ID’s data. If not specified, the Mule automatically provisions the default object store.

### OAuth JWT #### Parameters
NameTypeDescriptionDefault ValueRequired

TLS configuration

If the protocol is configured as HTTPS, then you must also configure the keystore configuration.

Read Timeout

Number

Specifies the amount of time, in milliseconds, that the consumer waits for a response before it times out. The default value is 0, which means infinite.

0

Read Timeout Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

Time unit that qualifies the Read Timeout.

MILLISECONDS

Connection Timeout

Number

Specifies the amount of time, in milliseconds, that the consumer attempts to establish a connection before it times out. The default value is 0, which means infinite.

0

Connection Timeout Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

Time Unit that qualifies the Connection Timeout.

MILLISECONDS

Host

String

Host name of the proxy. Required if a proxy is used. If this property is not set, then no proxy is used.

Port

Number

Port of the proxy. If a Host is set, this property must also be set, and cannot be a negative number.

Username

String

Username used to authenticate against the proxy. Required if using authentication against the proxy. If this property is not set, then no authentication is used against the proxy.

Password

String

Password used to authenticate against the proxy.

Consumer Key

String

Consumer key for the Salesforce-connected app.

x

Key Store

String

Path to the keystore used to sign data during authentication.

x

Store Password

String

Password of the keystore.

x

Principal

String

Username of the Salesforce user on whose behalf to take action.

x

Token Endpoint

String

URL pointing to the server responsible for providing the authentication token. According to Salesforce, this URL is https://login.salesforce.com/services/oauth2/token. If implementing for a community, the URL is https://acme.force.com/customers/services/oauth2/token, where acme.force.com/customers is your own community URL.

https://login.salesforce.com/services/oauth2/token

Audience Url

String

Identifies the authorization server as an intended audience. The authorization server must verify that it is an intended audience for the token.

Use the authorization server’s URL for the audience value, for example: https://login.salesforce.com, https://test.salesforce.com, or +https://community.force.com/customers= if implementing for a community.

Reconnection

When the application is deployed, a connectivity test is performed on all connectors. If set to true, deployment fails if the test doesn’t pass after exhausting the associated reconnection strategy.

### OAuth 2.0 SAML Bearer #### Parameters
NameTypeDescriptionDefault ValueRequired

TLS configuration

If the protocol is configured as HTTPS, then you must also configure the keystore configuration.

Read Timeout

Number

Specifies the amount of time, in milliseconds, that the consumer waits for a response before it times out. The default value is 0, which means infinite.

0

Read Timeout Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

Time Unit that qualifies the Read Timeout.

MILLISECONDS

Connection Timeout

Number

Specifies the amount of time, in milliseconds, that the consumer attempts to establish a connection before it times out. The default value is 0, which means infinite.

0

Connection Timeout Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

Time Unit that qualifies the Connection Timeout.

MILLISECONDS

Host

String

Host name of the proxy. Required if a proxy is used. If this property is not set, then no proxy is used.

Port

Number

Port of the proxy. If a Host is set, this property must also be set, and cannot be a negative number.

Username

String

Username used to authenticate against the proxy. If this property is not set then no authentication is used against the proxy, otherwise this value must be specified.

Password

String

Password used to authenticate against the proxy.

Consumer Key

String

Consumer key for Salesforce-connected app.

x

Key Store

String

Path to the keystore used to sign data during authentication.

x

Store Password

String

Password of the keystore.

x

Principal

String

Username of the Salesforce user on whose behalf to take action.

x

Token Endpoint

String

URL pointing to the server responsible for providing the authentication token. According to Salesforce, this URL is https://login.salesforce.com/services/oauth2/token. If implementing for a community, the URL is https://acme.force.com/customers/services/oauth2/token, where acme.force.com/customers is your own community URL.

https://login.salesforce.com/services/oauth2/token

Reconnection

When the application is deployed, a connectivity test is performed on all connectors. If set to true, deployment fails if the test doesn’t pass after exhausting the associated reconnection strategy.

#### List of Operations - [Create Data Set](#createDataSet) - [Delete Data Set](#deleteDataSet) - [Start Data Processing](#startDataProcessing) - [Unauthorize](#unauthorize) - [Upload External Data](#uploadExternalData) - [Upload External Data Into New Dataset And Start Processing](#uploadExternalDataIntoNewDataSetAndStartProcessing) ## Operations ### Create Data Set `` Creates a new dataset (InsightsExternalData record) in the Salesforce Analytics Cloud system and returns the identifier (InsightsExternalData ID) of the created dataset within the Salesforce Analytics Cloud system. #### Parameters
NameTypeDescriptionDefault ValueRequired

Configuration

String

The name of the configuration to use.

x

Type

String

Represents the type of the dataset to be created

x

Operation

Enumeration, one of:

  • APPEND

  • OVERWRITE

  • UPSERT

  • DELETE

x

Description

String

x

Label

String

x

Data Set Name

String

x

Edgemart Container

String

Notification Sent

Enumeration, one of:

  • ALWAYS

  • FAILURES

  • NEVER

  • WARNINGS

Notification Email

String

Mode

Enumeration, one of:

  • INCREMENTAL

  • NONE

Mode.

NONE

Target Variable

String

The variable name where to store the operation’s output.

Target Value

String

An expression to evaluate against the operation’s output. The outcome of that expression is stored in the target variable.

#[payload]

Reconnection Strategy

A retry strategy in case of connectivity errors.

#### Output

Type

String

#### For Configurations - [Default Configuration](#salesforce-analytics) #### Throws - SALESFORCE-ANALYTICS:CONNECTIVITY - SALESFORCE-ANALYTICS:ERROR\_RESPONSE - SALESFORCE-ANALYTICS:INVALID\_SESSION - SALESFORCE-ANALYTICS:INVALID\_REQUEST\_DATA - SALESFORCE-ANALYTICS:RETRY\_EXHAUSTED - SALESFORCE-ANALYTICS:TRANSACTION - SALESFORCE-ANALYTICS:UNKNOWN ### Delete Data Set `` Deletes the specified dataset (InsightsExternalData record) from the Salesforce Analytics Cloud system. For more information about limitations, refer to [The InsightsExternalData Object](https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_ext_data.meta/bi_dev_guide_ext_data/bi_ext_data_object_externaldata.htm). #### Parameters
NameTypeDescriptionDefault ValueRequired

Configuration

String

The name of the configuration to use

x

Data Set Id

String

Identifier of the dataset (InsightsExternalData ID) to delete.

x

Reconnection Strategy

A retry strategy in case of connectivity errors

#### For Configurations - [Default Configuration](#salesforce-analytics) #### Throws - SALESFORCE-ANALYTICS:CONNECTIVITY - SALESFORCE-ANALYTICS:ERROR\_RESPONSE - SALESFORCE-ANALYTICS:INVALID\_SESSION - SALESFORCE-ANALYTICS:INVALID\_REQUEST\_DATA - SALESFORCE-ANALYTICS:RETRY\_EXHAUSTED - SALESFORCE-ANALYTICS:TRANSACTION - SALESFORCE-ANALYTICS:UNKNOWN ### Start Data Processing `` Tells the Salesforce Analytics Cloud system to start processing the records uploaded at this point into a dataset. #### Parameters
NameTypeDescriptionDefault ValueRequired

Configuration

String

The name of the configuration to use

x

Data Set Id

String

Identifier of the dataset (InsightsExternalData ID) to process.

x

Reconnection Strategy

A retry strategy in case of connectivity errors

#### For Configurations - [Default Configuration](#salesforce-analytics) #### Throws - SALESFORCE-ANALYTICS:CONNECTIVITY - SALESFORCE-ANALYTICS:ERROR\_RESPONSE - SALESFORCE-ANALYTICS:INVALID\_SESSION - SALESFORCE-ANALYTICS:INVALID\_REQUEST\_DATA - SALESFORCE-ANALYTICS:RETRY\_EXHAUSTED - SALESFORCE-ANALYTICS:TRANSACTION - SALESFORCE-ANALYTICS:UNKNOWN ### Unauthorize `` Deletes all the access token information of a given resource owner ID so that it’s impossible to execute any operation for the user without repeating the authorization dance. #### Parameters
NameTypeDescriptionDefault ValueRequired

Configuration

String

The name of the configuration to use

x

Resource Owner Id

String

The ID of the resource owner for whom to invalidate access

#### For Configurations - [Default Configuration](#salesforce-analytics) ### Upload External Data `` Creates an InsightsExternalDataPart record. The InsightsExternalDataPart object works with the InsightsExternalData ID. After you insert a row into the InsightsExternalData object, you can create part objects to split up your data into parts. #### Parameters
NameTypeDescriptionDefault ValueRequired

Configuration

String

The name of the configuration to use.

x

Data Set Id

String

Identifier of a dataset (InsightsExternalData ID) within the Salesforce Analytics Cloud system.

x

Records

Array of Object

List of records to insert.

#[payload]

Target Variable

String

The variable name where to store the operation’s output.

Target Value

String

An expression to evaluate against the operation’s output. The outcome of that expression is stored in the target variable.

#[payload]

Reconnection Strategy

A retry strategy in case of connectivity errors.

#### Output

Type

#### For Configurations - [Default Configuration](#salesforce-analytics) #### Throws - SALESFORCE-ANALYTICS:CONNECTIVITY - SALESFORCE-ANALYTICS:ERROR\_RESPONSE - SALESFORCE-ANALYTICS:INVALID\_SESSION - SALESFORCE-ANALYTICS:INVALID\_REQUEST\_DATA - SALESFORCE-ANALYTICS:RETRY\_EXHAUSTED - SALESFORCE-ANALYTICS:TRANSACTION - SALESFORCE-ANALYTICS:UNKNOWN ### Upload External Data Into New Dataset And Start Processing `` Creates a dataset (InsightsExternalData), uploads data into InsightsExternalDataPart records, and tells the Salesforce Analytics Cloud system to start processing the uploaded data to create the Salesforce dataset. #### Parameters
NameTypeDescriptionDefault ValueRequired

Configuration

String

The name of the configuration to use.

x

Type

String

Type of the records to insert. This automatically computes based on metadata extracted from the provided file that contains the configuration element.

x

Records

Array of Object

List of records to insert.

#[payload]

Operation

Enumeration, one of:

  • APPEND

  • DELETE

  • OVERWRITE

  • UPSERT

x

Description

String

x

Label

String

x

Data Set Name

String

x

Edgemart Container

String

Notification Sent

Enumeration, one of:

  • ALWAYS

  • FAILURES

  • NEVER

  • WARNINGS

Notification Email

String

Mode

Enumeration, one of:

  • INCREMENTAL

  • NONE

Mode.

NONE

Target Variable

String

The variable name where to store the operation’s output.

Target Value

String

An expression to evaluate against the operation’s output. The outcome of that expression is stored in the target variable.

#[payload]

Reconnection Strategy

A retry strategy in case of connectivity errors.

#### Output

Type

String

#### For Configurations - [Default Configuration](#salesforce-analytics) #### Throws - SALESFORCE-ANALYTICS:CONNECTIVITY - SALESFORCE-ANALYTICS:ERROR\_RESPONSE - SALESFORCE-ANALYTICS:INVALID\_SESSION - SALESFORCE-ANALYTICS:INVALID\_REQUEST\_DATA - SALESFORCE-ANALYTICS:RETRY\_EXHAUSTED - SALESFORCE-ANALYTICS:TRANSACTION - SALESFORCE-ANALYTICS:UNKNOWN ## Types ### Tls
FieldTypeDescriptionDefault ValueRequired

Enabled Protocols

String

A comma-separated list of protocols enabled for this context.

Enabled Cipher Suites

String

A comma-separated list of cipher suites enabled for this context.

Trust Store

Key Store

Revocation Check

### Trust Store
FieldTypeDescriptionDefault ValueRequired

Path

String

The location of the trust store, which will be resolved relative to the current classpath and file system, if possible.

Password

String

The password used to protect the trust store.

Type

String

The type of store used.

Algorithm

String

The algorithm used by the trust store.

Insecure

Boolean

If true, no certificate validations will be performed, rendering connections vulnerable to attacks. Use at your own risk.

### Key Store
FieldTypeDescriptionDefault ValueRequired

Path

String

The location of the trust store, which will be resolved relative to the current classpath and file system, if possible.

Type

String

The type of store used.

Alias

String

When the keystore contains many private keys, this attribute indicates the alias of the key to use. If not defined, the first key in the file is used by default.

Key Password

String

The password used to protect the private key.

Password

String

The password used to protect the keystore.

Algorithm

String

The algorithm used by the keystore.

### Standard Revocation Check
FieldTypeDescriptionDefault ValueRequired

Only End Entities

Boolean

Only verify the last element of the certificate chain.

Prefer Crls

Boolean

Try CRL instead of OCSP first.

No Fallback

Boolean

Do not use the secondary checking method (the one not selected before).

Soft Fail

Boolean

Avoid verification failure when the revocation server can not be reached or is busy.

### Custom OCSP Responder
FieldTypeDescriptionDefault ValueRequired

Url

String

The URL of the OCSP responder.

Cert Alias

String

Alias of the signing certificate for the OCSP response (must be in the trust store), if present.

### CRL File
FieldTypeDescriptionDefault ValueRequired

Path

String

The path to the CRL file.

### Reconnection
FieldTypeDescriptionDefault ValueRequired

Fails Deployment

Boolean

When the application is deployed, a connectivity test is performed on all connectors. If set to true, deployment fails if the test doesn’t pass after exhausting the associated reconnection strategy.

Reconnection Strategy

The reconnection strategy to use

### Reconnect
FieldTypeDescriptionDefault ValueRequired

Frequency

Number

How often to reconnect (in milliseconds)

Count

Number

The number of reconnection attempts to make

### Reconnect Forever
FieldTypeDescriptionDefault ValueRequired

Frequency

Number

How often in milliseconds to reconnect

### Expiration Policy
FieldTypeDescriptionDefault ValueRequired

Max Idle Time

Number

A scalar time value for the maximum amount of time a dynamic configuration instance is allowed to be idle before it’s considered eligible for expiration.

Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

A time unit that qualifies the maxIdleTime attribute.

### Bulk Operation Result
FieldTypeDescriptionDefault ValueRequired

Id

Any

Items

Array of Bulk Item

Successful

Boolean

### Bulk Item
FieldTypeDescriptionDefault ValueRequired

Exception

Any

Id

Any

Message

String

Payload

Object

Status Code

String

Successful

Boolean

## See Also [Salesforce Help](https://help.salesforce.com) --- product: Salesforce Einstein Analytics Connector version: 3.21 --- # Salesforce Einstein Analytics Connector 3.21 Reference > For the full documentation index, see: https://docs.mulesoft.com/llms.txt ## Default Configuration ### Parameters
NameTypeDescriptionDefault ValueRequired

Name

String

The name for this configuration. Connectors reference the configuration with this name.

x

Connection

  • Basic Username and Password

  • OAuth v2.0

  • OAuth JWT

  • OAuth 2.0 SAML Bearer

The connection types to provide to this configuration. Note that the Username Password connection type is only supported for Salesforce API v64.0 and earlier versions.

x

Name

String

Identifier of this element used to reference it in other components.

x

Expiration Policy

Configures the minimum amount of time that a dynamic configuration instance can remain idle before Mule considers it eligible for expiration. This does not mean that the instance expires at the exact moment that it becomes eligible. Mule purges the instances as appropriate.

## Connection Types ### Basic Username and Password > [!NOTE] The `Username Password` connection type is only supported for Salesforce API v64.0 and > earlier versions. #### Parameters
NameTypeDescriptionDefault ValueRequired

TLS configuration

If the protocol is configured as HTTPS, then you must also configure the keystore configuration.

Username

String

Username used to initialize the session.

x

Password

String

Password used to authenticate the user.

x

Security Token

String

User’s security token. It can be omitted if your IP has been added to the allow list on Salesforce.

Authorization URL

String

Web service URL responsible for user authentication. This is the URL for the endpoint that is configured to handle SOAP authentication requests.

There is no default value, but if left empty the connector uses the latest API version

Reconnection

When the application is deployed, a connectivity test is performed on all connectors. If set to true, deployment fails if the test doesn’t pass after exhausting the associated reconnection strategy.

Read Timeout

Number

Specifies the amount of time, in milliseconds, that the consumer waits for a response before it times out. Default value is 0, which means infinite.

0

Read Timeout Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

Time unit that qualifies the Read Timeout.

MILLISECONDS

Connection Timeout

Number

Specifies the amount of time, in milliseconds, that the consumer attempts to establish a connection before it times out. Default value is 0, which means infinite.

0

Connection Timeout Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

Time unit that qualifies the Connection Timeout.

MILLISECONDS

Host

String

Host name of the proxy. If this property is not set then no proxy is used, otherwise a proxy is used, but a proxy host must be specified.

Port

Number

Port of the proxy. If host is set then this property must be set and cannot be a negative number.

Username

String

Username used to authenticate against the proxy. If this property is not set then no authentication is used against the proxy, otherwise this value must be specified.

Password

String

Password used to authenticate against the proxy.

### OAuth v2.0 Use OAuth 2.0 to delegate user authentication to the service hosting the user account. For more information, refer to [Configuring OAuth 2.0 for Connectors](https://docs.mulesoft.com/connectors/introduction/intro-config-oauth2), [Configuring OAuth 2.0 for Connectors on CloudHub](https://docs.mulesoft.com/connectors/introduction/intro-config-oauth2-cloudhub), or [OAuth Support in the SDK](https://docs.mulesoft.com/mule-sdk/latest/oauth). #### Parameters
NameTypeDescriptionDefault ValueRequired

Display

Enumeration, one of:

  • PAGE

  • POPUP

  • TOUCH

PAGE

Immediate

Enumeration, one of:

  • TRUE

  • FALSE

FALSE

Prompt

Enumeration, one of:

  • LOGIN

  • CONSENT

LOGIN

Reconnection

When the application is deployed, a connectivity test is performed on all connectors. If set to true, deployment fails if the test doesn’t pass after exhausting the associated reconnection strategy.

Read Timeout

Number

Specifies the amount of time, in milliseconds, that the consumer waits for a response before it times out. Default value is 0, which means infinite.

0

Read Timeout Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

Time unit that qualifies the Read Timeout.

MILLISECONDS

Connection Timeout

Number

Specifies the amount of time, in milliseconds, that the consumer attempts to establish a connection before it times out. Default value is 0, which means infinite.

0

Connection Timeout Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

Time unit that qualifies the Connection Timeout.

MILLISECONDS

Host

String

Host name of the proxy. If this property is not set, then no proxy is used, otherwise a proxy is used, and a proxy host must be specified.

Port

Number

Port of the proxy. If host is set, then this property must be set and cannot be a negative number.

Username

String

Username used to authenticate against the proxy. If this property is not set, then no authentication is used against the proxy, otherwise this value must be specified.

Password

String

Password used to authenticate against the proxy.

Consumer Key

String

The OAuth consumerKey as registered with the service provider.

x

Consumer Secret

String

The OAuth consumerSecret as registered with the service provider.

x

Authorization Url

String

The service provider’s authorization endpoint URL.

https://login.salesforce.com/services/oauth2/authorize

Access Token Url

String

The service provider’s accessToken endpoint URL.

https://login.salesforce.com/services/oauth2/token

Scopes

String

The OAuth scopes to request during the dance. If not provided, it defaults to those in the annotation.

Resource Owner Id

String

The resourceOwnerId that each component should use if it doesn’t reference otherwise.

Before

String

The name of a flow to execute immediately before starting the OAuth dance.

After

String

The name of a flow to execute immediately after an accessToken is received.

Listener Config

String

A reference to a <http:listener-config /> to use to create the listener that catches the access token callback endpoint.

x

Callback Path

String

The path of the access token callback endpoint.

x

Authorize Path

String

The path of the local HTTP endpoint that triggers the OAuth dance.

x

External Callback Url

String

Specify the URL the OAuth provider should use to access the callback if the callback endpoint is behind a proxy or will be accessed through a non-direct URL.

Object Store

String

A reference to the object store to use to store each resource owner ID’s data. If not specified, the Mule automatically provisions the default object store.

### OAuth JWT Use OAuth 2.0 to delegate user authentication to the service hosting the user account. For more information, refer to [Configuring OAuth 2.0 for Connectors](https://docs.mulesoft.com/connectors/introduction/intro-config-oauth2), [Configuring OAuth 2.0 for Connectors on CloudHub](https://docs.mulesoft.com/connectors/introduction/intro-config-oauth2-cloudhub), or [OAuth Support in the SDK](https://docs.mulesoft.com/mule-sdk/latest/oauth). #### Parameters
NameTypeDescriptionDefault ValueRequired

TLS configuration

If the protocol is configured as HTTPS, then you must also configure the keystore configuration.

Read Timeout

Number

Specifies the amount of time, in milliseconds, that the consumer waits for a response before it times out. The default value is 0, which means infinite.

0

Read Timeout Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

Time unit that qualifies the Read Timeout.

MILLISECONDS

Connection Timeout

Number

Specifies the amount of time, in milliseconds, that the consumer attempts to establish a connection before it times out. The default value is 0, which means infinite.

0

Connection Timeout Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

Time Unit that qualifies the Connection Timeout.

MILLISECONDS

Host

String

Host name of the proxy. Required if a proxy is used. If this property is not set, then no proxy is used.

Port

Number

Port of the proxy. If a Host is set, this property must also be set, and cannot be a negative number.

Username

String

Username used to authenticate against the proxy. Required if using authentication against the proxy. If this property is not set, then no authentication is used against the proxy.

Password

String

Password used to authenticate against the proxy.

Consumer Key

String

Consumer key for the Salesforce-connected app.

x

Key Store

String

Path to the keystore used to sign data during authentication.

x

Store Password

String

Password of the keystore.

x

Principal

String

Username of the Salesforce user on whose behalf to take action.

x

Token Endpoint

String

URL pointing to the server responsible for providing the authentication token. According to Salesforce, this URL is https://login.salesforce.com/services/oauth2/token. If implementing for a community, the URL is https://acme.force.com/customers/services/oauth2/token, where acme.force.com/customers is your own community URL.

https://login.salesforce.com/services/oauth2/token

Audience Url

String

Identifies the authorization server as an intended audience. The authorization server must verify that it is an intended audience for the token.

Use the authorization server’s URL for the audience value, for example: https://login.salesforce.com, https://test.salesforce.com, or +https://community.force.com/customers= if implementing for a community.

Reconnection

When the application is deployed, a connectivity test is performed on all connectors. If set to true, deployment fails if the test doesn’t pass after exhausting the associated reconnection strategy.

### OAuth 2.0 SAML Bearer Use OAuth 2.0 to delegate user authentication to the service hosting the user account. For more information, refer to [Configuring OAuth 2.0 for Connectors](https://docs.mulesoft.com/connectors/introduction/intro-config-oauth2), [Configuring OAuth 2.0 for Connectors on CloudHub](https://docs.mulesoft.com/connectors/introduction/intro-config-oauth2-cloudhub), or [OAuth Support in the SDK](https://docs.mulesoft.com/mule-sdk/latest/oauth). #### Parameters
NameTypeDescriptionDefault ValueRequired

TLS configuration

If the protocol is configured as HTTPS, then you must also configure the keystore configuration.

Read Timeout

Number

Specifies the amount of time, in milliseconds, that the consumer waits for a response before it times out. The default value is 0, which means infinite.

0

Read Timeout Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

Time Unit that qualifies the Read Timeout.

MILLISECONDS

Connection Timeout

Number

Specifies the amount of time, in milliseconds, that the consumer attempts to establish a connection before it times out. The default value is 0, which means infinite.

0

Connection Timeout Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

Time Unit that qualifies the Connection Timeout.

MILLISECONDS

Host

String

Host name of the proxy. Required if a proxy is used. If this property is not set, then no proxy is used.

Port

Number

Port of the proxy. If a Host is set, this property must also be set, and cannot be a negative number.

Username

String

Username used to authenticate against the proxy. If this property is not set then no authentication is used against the proxy, otherwise this value must be specified.

Password

String

Password used to authenticate against the proxy.

Consumer Key

String

Consumer key for Salesforce-connected app.

x

Key Store

String

Path to the keystore used to sign data during authentication.

x

Store Password

String

Password of the keystore.

x

Principal

String

Username of the Salesforce user on whose behalf to take action.

x

Token Endpoint

String

URL pointing to the server responsible for providing the authentication token. According to Salesforce, this URL is https://login.salesforce.com/services/oauth2/token. If implementing for a community, the URL is https://acme.force.com/customers/services/oauth2/token, where acme.force.com/customers is your own community URL.

https://login.salesforce.com/services/oauth2/token

Reconnection

When the application is deployed, a connectivity test is performed on all connectors. If set to true, deployment fails if the test doesn’t pass after exhausting the associated reconnection strategy.

#### List of Operations - [Create Data Set](#createDataSet) - [Delete Data Set](#deleteDataSet) - [Start Data Processing](#startDataProcessing) - [Unauthorize](#unauthorize) - [Upload External Data](#uploadExternalData) - [Upload External Data Into New Dataset And Start Processing](#uploadExternalDataIntoNewDataSetAndStartProcessing) ## Operations ### Create Data Set `` Creates a new dataset (InsightsExternalData record) in the Salesforce Analytics Cloud system and returns the identifier (InsightsExternalData ID) of the created dataset within the Salesforce Analytics Cloud system. #### Parameters
NameTypeDescriptionDefault ValueRequired

Configuration

String

The name of the configuration to use.

x

Type

String

Represents the type of the dataset to be created

x

Config Ref

ConfigurationProvider

The name of the configuration to use to execute this component.

x

Operation

Enumeration, one of:

  • APPEND

  • OVERWRITE

  • UPSERT

  • DELETE

x

Description

String

x

Label

String

x

Data Set Name

String

x

Edgemart Container

String

Notification Sent

Enumeration, one of:

  • ALWAYS

  • FAILURES

  • NEVER

  • WARNINGS

Notification Email

String

Mode

Enumeration, one of:

  • INCREMENTAL

  • NONE

Mode.

NONE

Target Variable

String

The variable name where to store the operation’s output.

Target Value

String

An expression to evaluate against the operation’s output. The outcome of that expression is stored in the target variable.

#[payload]

Error Mappings

Array of Error Mapping

Set of error mappings.

Reconnection Strategy

A retry strategy in case of connectivity errors.

#### Output

Type

String

#### For Configurations - [Default Configuration](#salesforce-analytics) #### Throws - SALESFORCE-ANALYTICS:CONNECTIVITY - SALESFORCE-ANALYTICS:ERROR\_RESPONSE - SALESFORCE-ANALYTICS:INVALID\_SESSION - SALESFORCE-ANALYTICS:INVALID\_REQUEST\_DATA - SALESFORCE-ANALYTICS:RETRY\_EXHAUSTED - SALESFORCE-ANALYTICS:TRANSACTION - SALESFORCE-ANALYTICS:UNKNOWN ### Delete Data Set `` Deletes the specified dataset (InsightsExternalData record) from the Salesforce Analytics Cloud system. For more information about limitations, refer to [The InsightsExternalData Object](https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_ext_data.meta/bi_dev_guide_ext_data/bi_ext_data_object_externaldata.htm). #### Parameters
NameTypeDescriptionDefault ValueRequired

Configuration

String

The name of the configuration to use

x

Data Set Id

String

Identifier of the dataset (InsightsExternalData ID) to delete.

x

Config Ref

ConfigurationProvider

The name of the configuration to use to execute this component.

x

Error Mappings

Array of Error Mapping

Set of error mappings.

Reconnection Strategy

A retry strategy in case of connectivity errors

#### For Configurations - [Default Configuration](#salesforce-analytics) #### Throws - SALESFORCE-ANALYTICS:CONNECTIVITY - SALESFORCE-ANALYTICS:ERROR\_RESPONSE - SALESFORCE-ANALYTICS:INVALID\_SESSION - SALESFORCE-ANALYTICS:INVALID\_REQUEST\_DATA - SALESFORCE-ANALYTICS:RETRY\_EXHAUSTED - SALESFORCE-ANALYTICS:TRANSACTION - SALESFORCE-ANALYTICS:UNKNOWN ### Start Data Processing `` Tells the Salesforce Analytics Cloud system to start processing the records uploaded at this point into a dataset. #### Parameters
NameTypeDescriptionDefault ValueRequired

Configuration

String

The name of the configuration to use

x

Data Set Id

String

Identifier of the dataset (InsightsExternalData ID) to process.

x

Config Ref

ConfigurationProvider

The name of the configuration to use to execute this component.

x

Error Mappings

Array of Error Mapping

Set of error mappings.

Reconnection Strategy

A retry strategy in case of connectivity errors

#### For Configurations - [Default Configuration](#salesforce-analytics) #### Throws - SALESFORCE-ANALYTICS:CONNECTIVITY - SALESFORCE-ANALYTICS:ERROR\_RESPONSE - SALESFORCE-ANALYTICS:INVALID\_SESSION - SALESFORCE-ANALYTICS:INVALID\_REQUEST\_DATA - SALESFORCE-ANALYTICS:RETRY\_EXHAUSTED - SALESFORCE-ANALYTICS:TRANSACTION - SALESFORCE-ANALYTICS:UNKNOWN ### Unauthorize `` Deletes all the access token information of a given resource owner ID so that it’s impossible to execute any operation for the user without repeating the authorization dance. #### Parameters
NameTypeDescriptionDefault ValueRequired

Configuration

String

The name of the configuration to use

x

Resource Owner Id

String

The ID of the resource owner for whom to invalidate access

Config Ref

ConfigurationProvider

The name of the configuration to use to execute this component.

x

#### For Configurations - [Default Configuration](#salesforce-analytics) ### Upload External Data `` Creates an InsightsExternalDataPart record. The InsightsExternalDataPart object works with the InsightsExternalData ID. After you insert a row into the InsightsExternalData object, you can create part objects to split up your data into parts. #### Parameters
NameTypeDescriptionDefault ValueRequired

Configuration

String

The name of the configuration to use.

x

Data Set Id

String

Identifier of a dataset (InsightsExternalData ID) within the Salesforce Analytics Cloud system.

x

Records

Array of Object

List of records to insert.

#[payload]

Config Ref

ConfigurationProvider

The name of the configuration to use to execute this component.

x

Target Variable

String

The variable name where to store the operation’s output.

Target Value

String

An expression to evaluate against the operation’s output. The outcome of that expression is stored in the target variable.

#[payload]

Error Mappings

Array of Error Mapping

Set of error mappings.

Reconnection Strategy

A retry strategy in case of connectivity errors.

#### Output

Type

#### For Configurations - [Default Configuration](#salesforce-analytics) #### Throws - SALESFORCE-ANALYTICS:CONNECTIVITY - SALESFORCE-ANALYTICS:ERROR\_RESPONSE - SALESFORCE-ANALYTICS:INVALID\_SESSION - SALESFORCE-ANALYTICS:INVALID\_REQUEST\_DATA - SALESFORCE-ANALYTICS:RETRY\_EXHAUSTED - SALESFORCE-ANALYTICS:TRANSACTION - SALESFORCE-ANALYTICS:UNKNOWN ### Upload External Data Into New Dataset And Start Processing `` Creates a dataset (InsightsExternalData), uploads data into InsightsExternalDataPart records, and tells the Salesforce Analytics Cloud system to start processing the uploaded data to create the Salesforce dataset. #### Parameters
NameTypeDescriptionDefault ValueRequired

Configuration

String

The name of the configuration to use.

x

Type

String

Type of the records to insert. This automatically computes based on metadata extracted from the provided file that contains the configuration element.

x

Records

Array of Object

List of records to insert.

#[payload]

Config Ref

ConfigurationProvider

The name of the configuration to use to execute this component.

x

Operation

Enumeration, one of:

  • APPEND

  • DELETE

  • OVERWRITE

  • UPSERT

x

Description

String

x

Label

String

x

Data Set Name

String

x

Edgemart Container

String

Notification Sent

Enumeration, one of:

  • ALWAYS

  • FAILURES

  • NEVER

  • WARNINGS

Notification Email

String

Mode

Enumeration, one of:

  • INCREMENTAL

  • NONE

Mode.

NONE

Target Variable

String

The variable name where to store the operation’s output.

Target Value

String

An expression to evaluate against the operation’s output. The outcome of that expression is stored in the target variable.

#[payload]

Error Mappings

Array of Error Mapping

Set of error mappings.

Reconnection Strategy

A retry strategy in case of connectivity errors.

#### Output

Type

String

#### For Configurations - [Default Configuration](#salesforce-analytics) #### Throws - SALESFORCE-ANALYTICS:CONNECTIVITY - SALESFORCE-ANALYTICS:ERROR\_RESPONSE - SALESFORCE-ANALYTICS:INVALID\_SESSION - SALESFORCE-ANALYTICS:INVALID\_REQUEST\_DATA - SALESFORCE-ANALYTICS:RETRY\_EXHAUSTED - SALESFORCE-ANALYTICS:TRANSACTION - SALESFORCE-ANALYTICS:UNKNOWN ## Types ### Tls
FieldTypeDescriptionDefault ValueRequired

Enabled Protocols

String

A comma-separated list of protocols enabled for this context.

Enabled Cipher Suites

String

A comma-separated list of cipher suites enabled for this context.

Trust Store

Key Store

Revocation Check

### Trust Store
FieldTypeDescriptionDefault ValueRequired

Path

String

The location of the trust store, which will be resolved relative to the current classpath and file system, if possible.

Password

String

The password used to protect the trust store.

Type

String

The type of store used.

Algorithm

String

The algorithm used by the trust store.

Insecure

Boolean

If true, no certificate validations will be performed, rendering connections vulnerable to attacks. Use at your own risk.

### Key Store
FieldTypeDescriptionDefault ValueRequired

Path

String

The location of the trust store, which will be resolved relative to the current classpath and file system, if possible.

Type

String

The type of store used.

Alias

String

When the keystore contains many private keys, this attribute indicates the alias of the key to use. If not defined, the first key in the file is used by default.

Key Password

String

The password used to protect the private key.

Password

String

The password used to protect the keystore.

Algorithm

String

The algorithm used by the keystore.

### Standard Revocation Check
FieldTypeDescriptionDefault ValueRequired

Only End Entities

Boolean

Only verify the last element of the certificate chain.

Prefer Crls

Boolean

Try CRL instead of OCSP first.

No Fallback

Boolean

Do not use the secondary checking method (the one not selected before).

Soft Fail

Boolean

Avoid verification failure when the revocation server can not be reached or is busy.

### Custom OCSP Responder
FieldTypeDescriptionDefault ValueRequired

Url

String

The URL of the OCSP responder.

Cert Alias

String

Alias of the signing certificate for the OCSP response (must be in the trust store), if present.

### CRL File
FieldTypeDescriptionDefault ValueRequired

Path

String

The path to the CRL file.

### Reconnection
FieldTypeDescriptionDefault ValueRequired

Fails Deployment

Boolean

When the application is deployed, a connectivity test is performed on all connectors. If set to true, deployment fails if the test doesn’t pass after exhausting the associated reconnection strategy.

Reconnection Strategy

The reconnection strategy to use

### Reconnect
FieldTypeDescriptionDefault ValueRequired

Frequency

Number

How often to reconnect (in milliseconds)

Blocking

Boolean

If false, the reconnection strategy runs in a separate, non-blocking thread.

Count

Number

The number of reconnection attempts to make

### Reconnect Forever
FieldTypeDescriptionDefault ValueRequired

Frequency

Number

How often in milliseconds to reconnect

Blocking

Boolean

If false, the reconnection strategy runs in a separate, non-blocking thread.

### Expiration Policy
FieldTypeDescriptionDefault ValueRequired

Max Idle Time

Number

A scalar time value for the maximum amount of time a dynamic configuration instance is allowed to be idle before it’s considered eligible for expiration.

Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

A time unit that qualifies the maxIdleTime attribute.

### Error Mapping
FieldTypeDescriptionDefault ValueRequired

Source

Enumeration, one of:

  • ANY

  • REDELIVERY_EXHAUSTED

  • TRANSFORMATION

  • EXPRESSION

  • SECURITY

  • CLIENT_SECURITY

  • SERVER_SECURITY

  • ROUTING

  • CONNECTIVITY

  • RETRY_EXHAUSTED

  • TIMEOUT

Target

String

x

### Bulk Operation Result
FieldTypeDescriptionDefault ValueRequired

Id

Any

Items

Array of Bulk Item

Successful

Boolean

### Bulk Item
FieldTypeDescriptionDefault ValueRequired

Exception

Any

Id

Any

Message

String

Payload

Object

Status Code

String

Successful

Boolean

## See Also [Salesforce Help](https://help.salesforce.com) --- product: Salesforce Einstein Analytics Connector version: 4.0 is-latest-version: true --- # Salesforce Einstein Analytics Connector 4.0 Reference > For the full documentation index, see: https://docs.mulesoft.com/llms.txt ## Default Configuration ### Parameters
NameTypeDescriptionDefault ValueRequired

Name

String

The name for this configuration. Connectors reference the configuration with this name.

x

Connection

  • Basic Username and Password

  • OAuth v2.0

  • OAuth Client Credentials

  • OAuth JWT

  • OAuth 2.0 SAML Bearer

The connection types to provide to this configuration. Note that the Username Password connection type is only supported for Salesforce API v64.0 and earlier versions.

x

Name

String

Identifier of this element used to reference it in other components.

x

Expiration Policy

Configures the minimum amount of time that a dynamic configuration instance can remain idle before Mule considers it eligible for expiration. This does not mean that the instance expires at the exact moment that it becomes eligible. Mule purges the instances as appropriate.

## Connection Types ### Basic Username and Password > [!NOTE] The `Username Password` connection type is only supported for Salesforce API v64.0 and > earlier versions. #### Parameters
NameTypeDescriptionDefault ValueRequired

TLS configuration

If the protocol is configured as HTTPS, then you must also configure the keystore configuration.

Username

String

Username used to initialize the session.

x

Password

String

Password used to authenticate the user.

x

Security Token

String

User’s security token. It can be omitted if your IP has been added to the allow list on Salesforce.

Authorization URL

String

Web service URL responsible for user authentication. This is the URL for the endpoint that is configured to handle SOAP authentication requests.

There is no default value, but if left empty the connector uses the latest API version

Reconnection

When the application is deployed, a connectivity test is performed on all connectors. If set to true, deployment fails if the test doesn’t pass after exhausting the associated reconnection strategy.

Read Timeout

Number

Specifies the amount of time, in milliseconds, that the consumer waits for a response before it times out. Default value is 0, which means infinite.

0

Read Timeout Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

Time unit that qualifies the Read Timeout.

MILLISECONDS

Connection Timeout

Number

Specifies the amount of time, in milliseconds, that the consumer attempts to establish a connection before it times out. Default value is 0, which means infinite.

0

Connection Timeout Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

Time unit that qualifies the Connection Timeout.

MILLISECONDS

Host

String

Host name of the proxy. If this property is not set then no proxy is used, otherwise a proxy is used, but a proxy host must be specified.

Port

Number

Port of the proxy. If host is set then this property must be set and cannot be a negative number.

Username

String

Username used to authenticate against the proxy. If this property is not set then no authentication is used against the proxy, otherwise this value must be specified.

Password

String

Password used to authenticate against the proxy.

### OAuth v2.0 Use OAuth 2.0 to delegate user authentication to the service hosting the user account. For more information, refer to [Configuring OAuth 2.0 for Connectors](https://docs.mulesoft.com/connectors/introduction/intro-config-oauth2), [Configuring OAuth 2.0 for Connectors on CloudHub](https://docs.mulesoft.com/connectors/introduction/intro-config-oauth2-cloudhub), or [OAuth Support in the SDK](https://docs.mulesoft.com/mule-sdk/latest/oauth). #### Parameters
NameTypeDescriptionDefault ValueRequired

Display

Enumeration, one of:

  • PAGE

  • POPUP

  • TOUCH

PAGE

Immediate

Enumeration, one of:

  • TRUE

  • FALSE

FALSE

Prompt

Enumeration, one of:

  • LOGIN

  • CONSENT

LOGIN

Reconnection

When the application is deployed, a connectivity test is performed on all connectors. If set to true, deployment fails if the test doesn’t pass after exhausting the associated reconnection strategy.

Read Timeout

Number

Specifies the amount of time, in milliseconds, that the consumer waits for a response before it times out. Default value is 0, which means infinite.

0

Read Timeout Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

Time unit that qualifies the Read Timeout.

MILLISECONDS

Connection Timeout

Number

Specifies the amount of time, in milliseconds, that the consumer attempts to establish a connection before it times out. Default value is 0, which means infinite.

0

Connection Timeout Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

Time unit that qualifies the Connection Timeout.

MILLISECONDS

Host

String

Host name of the proxy. If this property is not set, then no proxy is used, otherwise a proxy is used, and a proxy host must be specified.

Port

Number

Port of the proxy. If host is set, then this property must be set and cannot be a negative number.

Username

String

Username used to authenticate against the proxy. If this property is not set, then no authentication is used against the proxy, otherwise this value must be specified.

Password

String

Password used to authenticate against the proxy.

Consumer Key

String

The OAuth consumerKey as registered with the service provider.

x

Consumer Secret

String

The OAuth consumerSecret as registered with the service provider.

x

Authorization Url

String

The service provider’s authorization endpoint URL.

https://login.salesforce.com/services/oauth2/authorize

Access Token Url

String

The service provider’s accessToken endpoint URL.

https://login.salesforce.com/services/oauth2/token

Scopes

String

The OAuth scopes to request during the dance. If not provided, it defaults to those in the annotation.

Resource Owner Id

String

The resourceOwnerId that each component should use if it doesn’t reference otherwise.

Before

String

The name of a flow to execute immediately before starting the OAuth dance.

After

String

The name of a flow to execute immediately after an accessToken is received.

Listener Config

String

A reference to a <http:listener-config /> to use to create the listener that catches the access token callback endpoint.

x

Callback Path

String

The path of the access token callback endpoint.

x

Authorize Path

String

The path of the local HTTP endpoint that triggers the OAuth dance.

x

External Callback Url

String

Specify the URL the OAuth provider should use to access the callback if the callback endpoint is behind a proxy or will be accessed through a non-direct URL.

Object Store

String

A reference to the object store to use to store each resource owner ID’s data. If not specified, the Mule automatically provisions the default object store.

### OAuth Client Credentials Use the OAuth Client Credentials connection type for automated, server-to-server integrations that don’t require user interaction. #### Parameters
NameTypeDescriptionDefault ValueRequired

Read Timeout

Number

Specifies the amount of time, in milliseconds, that the consumer waits for a response before it times out. Default value is 0, which means infinite.

0

Read Timeout Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

Time unit that qualifies the Read Timeout.

MILLISECONDS

Connection Timeout

Number

Specifies the amount of time, in milliseconds, that the consumer attempts to establish a connection before it times out. Default value is 0, which means infinite.

0

Connection Timeout Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

Time unit that qualifies the Connection Timeout.

MILLISECONDS

Host

String

Host name of the proxy. If this property is not set then no proxy is used, otherwise a proxy is used, but a proxy host must be specified.

Port

Number

Port of the proxy. If host is set then this property must be set and cannot be a negative number.

Username

String

Username used to authenticate against the proxy. If this property is not set then no authentication is used against the proxy, otherwise this value must be specified.

Password

String

Password used to authenticate against the proxy.

Reconnection

When the application is deployed, a connectivity test is performed on all connectors. If set to true, deployment fails if the test doesn’t pass after exhausting the associated reconnection strategy.

Client Id

String

The OAuth client ID as registered with the service provider.

x

Client Secret

String

The OAuth client secret as registered with the service provider.

x

Token Url

String

The service provider’s token endpoint URL.

https://{domain}.my.salesforce.com/services/oauth2/token

Scopes

String

The OAuth scopes to request during the dance. If not provided, it defaults to those in the annotation.

Object Store

String

A reference to the object store to use to store each resource owner ID’s data. If not specified, Mule automatically provisions the default object store.

### OAuth JWT Use OAuth 2.0 to delegate user authentication to the service hosting the user account. For more information, refer to [Configuring OAuth 2.0 for Connectors](https://docs.mulesoft.com/connectors/introduction/intro-config-oauth2), [Configuring OAuth 2.0 for Connectors on CloudHub](https://docs.mulesoft.com/connectors/introduction/intro-config-oauth2-cloudhub), or [OAuth Support in the SDK](https://docs.mulesoft.com/mule-sdk/latest/oauth). #### Parameters
NameTypeDescriptionDefault ValueRequired

TLS configuration

If the protocol is configured as HTTPS, then you must also configure the keystore configuration.

Read Timeout

Number

Specifies the amount of time, in milliseconds, that the consumer waits for a response before it times out. The default value is 0, which means infinite.

0

Read Timeout Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

Time unit that qualifies the Read Timeout.

MILLISECONDS

Connection Timeout

Number

Specifies the amount of time, in milliseconds, that the consumer attempts to establish a connection before it times out. The default value is 0, which means infinite.

0

Connection Timeout Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

Time Unit that qualifies the Connection Timeout.

MILLISECONDS

Host

String

Host name of the proxy. Required if a proxy is used. If this property is not set, then no proxy is used.

Port

Number

Port of the proxy. If a Host is set, this property must also be set, and cannot be a negative number.

Username

String

Username used to authenticate against the proxy. Required if using authentication against the proxy. If this property is not set, then no authentication is used against the proxy.

Password

String

Password used to authenticate against the proxy.

Consumer Key

String

Consumer key for the Salesforce-connected app.

x

Key Store

String

Path to the keystore used to sign data during authentication.

x

Store Password

String

Password of the keystore.

x

Principal

String

Username of the Salesforce user on whose behalf to take action.

x

Token Endpoint

String

URL pointing to the server responsible for providing the authentication token. According to Salesforce, this URL is https://login.salesforce.com/services/oauth2/token. If implementing for a community, the URL is https://acme.force.com/customers/services/oauth2/token, where acme.force.com/customers is your own community URL.

https://login.salesforce.com/services/oauth2/token

Audience Url

String

Identifies the authorization server as an intended audience. The authorization server must verify that it is an intended audience for the token.

Use the authorization server’s URL for the audience value, for example: https://login.salesforce.com, https://test.salesforce.com, or +https://community.force.com/customers= if implementing for a community.

Reconnection

When the application is deployed, a connectivity test is performed on all connectors. If set to true, deployment fails if the test doesn’t pass after exhausting the associated reconnection strategy.

### OAuth 2.0 SAML Bearer Use OAuth 2.0 to delegate user authentication to the service hosting the user account. For more information, refer to [Configuring OAuth 2.0 for Connectors](https://docs.mulesoft.com/connectors/introduction/intro-config-oauth2), [Configuring OAuth 2.0 for Connectors on CloudHub](https://docs.mulesoft.com/connectors/introduction/intro-config-oauth2-cloudhub), or [OAuth Support in the SDK](https://docs.mulesoft.com/mule-sdk/latest/oauth). #### Parameters
NameTypeDescriptionDefault ValueRequired

TLS configuration

If the protocol is configured as HTTPS, then you must also configure the keystore configuration.

Read Timeout

Number

Specifies the amount of time, in milliseconds, that the consumer waits for a response before it times out. The default value is 0, which means infinite.

0

Read Timeout Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

Time Unit that qualifies the Read Timeout.

MILLISECONDS

Connection Timeout

Number

Specifies the amount of time, in milliseconds, that the consumer attempts to establish a connection before it times out. The default value is 0, which means infinite.

0

Connection Timeout Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

Time Unit that qualifies the Connection Timeout.

MILLISECONDS

Host

String

Host name of the proxy. Required if a proxy is used. If this property is not set, then no proxy is used.

Port

Number

Port of the proxy. If a Host is set, this property must also be set, and cannot be a negative number.

Username

String

Username used to authenticate against the proxy. If this property is not set then no authentication is used against the proxy, otherwise this value must be specified.

Password

String

Password used to authenticate against the proxy.

Consumer Key

String

Consumer key for Salesforce-connected app.

x

Key Store

String

Path to the keystore used to sign data during authentication.

x

Store Password

String

Password of the keystore.

x

Principal

String

Username of the Salesforce user on whose behalf to take action.

x

Token Endpoint

String

URL pointing to the server responsible for providing the authentication token. According to Salesforce, this URL is https://login.salesforce.com/services/oauth2/token. If implementing for a community, the URL is https://acme.force.com/customers/services/oauth2/token, where acme.force.com/customers is your own community URL.

https://login.salesforce.com/services/oauth2/token

Reconnection

When the application is deployed, a connectivity test is performed on all connectors. If set to true, deployment fails if the test doesn’t pass after exhausting the associated reconnection strategy.

#### List of Operations - [Create Data Set](#createDataSet) - [Delete Data Set](#deleteDataSet) - [Start Data Processing](#startDataProcessing) - [Unauthorize](#unauthorize) - [Upload External Data](#uploadExternalData) - [Upload External Data Into New Dataset And Start Processing](#uploadExternalDataIntoNewDataSetAndStartProcessing) ## Operations ### Create Data Set `` Creates a new dataset (InsightsExternalData record) in the Salesforce Analytics Cloud system and returns the identifier (InsightsExternalData ID) of the created dataset within the Salesforce Analytics Cloud system. #### Parameters
NameTypeDescriptionDefault ValueRequired

Configuration

String

The name of the configuration to use.

x

Type

String

Represents the type of the dataset to be created

x

Config Ref

ConfigurationProvider

The name of the configuration to use to execute this component.

x

Operation

Enumeration, one of:

  • APPEND

  • OVERWRITE

  • UPSERT

  • DELETE

x

Description

String

x

Label

String

x

Data Set Name

String

x

Edgemart Container

String

Notification Sent

Enumeration, one of:

  • ALWAYS

  • FAILURES

  • NEVER

  • WARNINGS

Notification Email

String

Mode

Enumeration, one of:

  • INCREMENTAL

  • NONE

Mode.

NONE

Target Variable

String

The variable name where to store the operation’s output.

Target Value

String

An expression to evaluate against the operation’s output. The outcome of that expression is stored in the target variable.

#[payload]

Error Mappings

Array of Error Mapping

Set of error mappings.

Reconnection Strategy

A retry strategy in case of connectivity errors.

#### Output

Type

String

#### For Configurations - [Default Configuration](#salesforce-analytics) #### Throws - SALESFORCE-ANALYTICS:CONNECTIVITY - SALESFORCE-ANALYTICS:ERROR\_RESPONSE - SALESFORCE-ANALYTICS:INVALID\_SESSION - SALESFORCE-ANALYTICS:INVALID\_REQUEST\_DATA - SALESFORCE-ANALYTICS:RETRY\_EXHAUSTED - SALESFORCE-ANALYTICS:TRANSACTION - SALESFORCE-ANALYTICS:UNKNOWN ### Delete Data Set `` Deletes the specified dataset (InsightsExternalData record) from the Salesforce Analytics Cloud system. For more information about limitations, refer to [The InsightsExternalData Object](https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_ext_data.meta/bi_dev_guide_ext_data/bi_ext_data_object_externaldata.htm). #### Parameters
NameTypeDescriptionDefault ValueRequired

Configuration

String

The name of the configuration to use

x

Data Set Id

String

Identifier of the dataset (InsightsExternalData ID) to delete.

x

Config Ref

ConfigurationProvider

The name of the configuration to use to execute this component.

x

Error Mappings

Array of Error Mapping

Set of error mappings.

Reconnection Strategy

A retry strategy in case of connectivity errors

#### For Configurations - [Default Configuration](#salesforce-analytics) #### Throws - SALESFORCE-ANALYTICS:CONNECTIVITY - SALESFORCE-ANALYTICS:ERROR\_RESPONSE - SALESFORCE-ANALYTICS:INVALID\_SESSION - SALESFORCE-ANALYTICS:INVALID\_REQUEST\_DATA - SALESFORCE-ANALYTICS:RETRY\_EXHAUSTED - SALESFORCE-ANALYTICS:TRANSACTION - SALESFORCE-ANALYTICS:UNKNOWN ### Start Data Processing `` Tells the Salesforce Analytics Cloud system to start processing the records uploaded at this point into a dataset. #### Parameters
NameTypeDescriptionDefault ValueRequired

Configuration

String

The name of the configuration to use

x

Data Set Id

String

Identifier of the dataset (InsightsExternalData ID) to process.

x

Config Ref

ConfigurationProvider

The name of the configuration to use to execute this component.

x

Error Mappings

Array of Error Mapping

Set of error mappings.

Reconnection Strategy

A retry strategy in case of connectivity errors

#### For Configurations - [Default Configuration](#salesforce-analytics) #### Throws - SALESFORCE-ANALYTICS:CONNECTIVITY - SALESFORCE-ANALYTICS:ERROR\_RESPONSE - SALESFORCE-ANALYTICS:INVALID\_SESSION - SALESFORCE-ANALYTICS:INVALID\_REQUEST\_DATA - SALESFORCE-ANALYTICS:RETRY\_EXHAUSTED - SALESFORCE-ANALYTICS:TRANSACTION - SALESFORCE-ANALYTICS:UNKNOWN ### Unauthorize `` Deletes all the access token information of a given resource owner ID so that it’s impossible to execute any operation for the user without repeating the authorization dance. #### Parameters
NameTypeDescriptionDefault ValueRequired

Configuration

String

The name of the configuration to use

x

Resource Owner Id

String

The ID of the resource owner for whom to invalidate access

Config Ref

ConfigurationProvider

The name of the configuration to use to execute this component.

x

#### For Configurations - [Default Configuration](#salesforce-analytics) ### Upload External Data `` Creates an InsightsExternalDataPart record. The InsightsExternalDataPart object works with the InsightsExternalData ID. After you insert a row into the InsightsExternalData object, you can create part objects to split up your data into parts. #### Parameters
NameTypeDescriptionDefault ValueRequired

Configuration

String

The name of the configuration to use.

x

Data Set Id

String

Identifier of a dataset (InsightsExternalData ID) within the Salesforce Analytics Cloud system.

x

Records

Array of Object

List of records to insert.

#[payload]

Config Ref

ConfigurationProvider

The name of the configuration to use to execute this component.

x

Target Variable

String

The variable name where to store the operation’s output.

Target Value

String

An expression to evaluate against the operation’s output. The outcome of that expression is stored in the target variable.

#[payload]

Error Mappings

Array of Error Mapping

Set of error mappings.

Reconnection Strategy

A retry strategy in case of connectivity errors.

#### Output

Type

#### For Configurations - [Default Configuration](#salesforce-analytics) #### Throws - SALESFORCE-ANALYTICS:CONNECTIVITY - SALESFORCE-ANALYTICS:ERROR\_RESPONSE - SALESFORCE-ANALYTICS:INVALID\_SESSION - SALESFORCE-ANALYTICS:INVALID\_REQUEST\_DATA - SALESFORCE-ANALYTICS:RETRY\_EXHAUSTED - SALESFORCE-ANALYTICS:TRANSACTION - SALESFORCE-ANALYTICS:UNKNOWN ### Upload External Data Into New Dataset And Start Processing `` Creates a dataset (InsightsExternalData), uploads data into InsightsExternalDataPart records, and tells the Salesforce Analytics Cloud system to start processing the uploaded data to create the Salesforce dataset. #### Parameters
NameTypeDescriptionDefault ValueRequired

Configuration

String

The name of the configuration to use.

x

Type

String

Type of the records to insert. This automatically computes based on metadata extracted from the provided file that contains the configuration element.

x

Records

Array of Object

List of records to insert.

#[payload]

Config Ref

ConfigurationProvider

The name of the configuration to use to execute this component.

x

Operation

Enumeration, one of:

  • APPEND

  • DELETE

  • OVERWRITE

  • UPSERT

x

Description

String

x

Label

String

x

Data Set Name

String

x

Edgemart Container

String

Notification Sent

Enumeration, one of:

  • ALWAYS

  • FAILURES

  • NEVER

  • WARNINGS

Notification Email

String

Mode

Enumeration, one of:

  • INCREMENTAL

  • NONE

Mode.

NONE

Target Variable

String

The variable name where to store the operation’s output.

Target Value

String

An expression to evaluate against the operation’s output. The outcome of that expression is stored in the target variable.

#[payload]

Error Mappings

Array of Error Mapping

Set of error mappings.

Reconnection Strategy

A retry strategy in case of connectivity errors.

#### Output

Type

String

#### For Configurations - [Default Configuration](#salesforce-analytics) #### Throws - SALESFORCE-ANALYTICS:CONNECTIVITY - SALESFORCE-ANALYTICS:ERROR\_RESPONSE - SALESFORCE-ANALYTICS:INVALID\_SESSION - SALESFORCE-ANALYTICS:INVALID\_REQUEST\_DATA - SALESFORCE-ANALYTICS:RETRY\_EXHAUSTED - SALESFORCE-ANALYTICS:TRANSACTION - SALESFORCE-ANALYTICS:UNKNOWN ## Types ### Tls
FieldTypeDescriptionDefault ValueRequired

Enabled Protocols

String

A comma-separated list of protocols enabled for this context.

Enabled Cipher Suites

String

A comma-separated list of cipher suites enabled for this context.

Trust Store

Key Store

Revocation Check

### Trust Store
FieldTypeDescriptionDefault ValueRequired

Path

String

The location of the trust store, which will be resolved relative to the current classpath and file system, if possible.

Password

String

The password used to protect the trust store.

Type

String

The type of store used.

Algorithm

String

The algorithm used by the trust store.

Insecure

Boolean

If true, no certificate validations will be performed, rendering connections vulnerable to attacks. Use at your own risk.

### Key Store
FieldTypeDescriptionDefault ValueRequired

Path

String

The location of the trust store, which will be resolved relative to the current classpath and file system, if possible.

Type

String

The type of store used.

Alias

String

When the keystore contains many private keys, this attribute indicates the alias of the key to use. If not defined, the first key in the file is used by default.

Key Password

String

The password used to protect the private key.

Password

String

The password used to protect the keystore.

Algorithm

String

The algorithm used by the keystore.

### Standard Revocation Check
FieldTypeDescriptionDefault ValueRequired

Only End Entities

Boolean

Only verify the last element of the certificate chain.

Prefer Crls

Boolean

Try CRL instead of OCSP first.

No Fallback

Boolean

Do not use the secondary checking method (the one not selected before).

Soft Fail

Boolean

Avoid verification failure when the revocation server can not be reached or is busy.

### Custom OCSP Responder
FieldTypeDescriptionDefault ValueRequired

Url

String

The URL of the OCSP responder.

Cert Alias

String

Alias of the signing certificate for the OCSP response (must be in the trust store), if present.

### CRL File
FieldTypeDescriptionDefault ValueRequired

Path

String

The path to the CRL file.

### Reconnection
FieldTypeDescriptionDefault ValueRequired

Fails Deployment

Boolean

When the application is deployed, a connectivity test is performed on all connectors. If set to true, deployment fails if the test doesn’t pass after exhausting the associated reconnection strategy.

Reconnection Strategy

The reconnection strategy to use

### Reconnect
FieldTypeDescriptionDefault ValueRequired

Frequency

Number

How often to reconnect (in milliseconds)

Blocking

Boolean

If false, the reconnection strategy runs in a separate, non-blocking thread.

Count

Number

The number of reconnection attempts to make

### Reconnect Forever
FieldTypeDescriptionDefault ValueRequired

Frequency

Number

How often in milliseconds to reconnect

Blocking

Boolean

If false, the reconnection strategy runs in a separate, non-blocking thread.

### Expiration Policy
FieldTypeDescriptionDefault ValueRequired

Max Idle Time

Number

A scalar time value for the maximum amount of time a dynamic configuration instance is allowed to be idle before it’s considered eligible for expiration.

Time Unit

Enumeration, one of:

  • NANOSECONDS

  • MICROSECONDS

  • MILLISECONDS

  • SECONDS

  • MINUTES

  • HOURS

  • DAYS

A time unit that qualifies the maxIdleTime attribute.

### Error Mapping
FieldTypeDescriptionDefault ValueRequired

Source

Enumeration, one of:

  • ANY

  • REDELIVERY_EXHAUSTED

  • TRANSFORMATION

  • EXPRESSION

  • SECURITY

  • CLIENT_SECURITY

  • SERVER_SECURITY

  • ROUTING

  • CONNECTIVITY

  • RETRY_EXHAUSTED

  • TIMEOUT

Target

String

x

### Bulk Operation Result
FieldTypeDescriptionDefault ValueRequired

Id

Any

Items

Array of Bulk Item

Successful

Boolean

### Bulk Item
FieldTypeDescriptionDefault ValueRequired

Exception

Any

Id

Any

Message

String

Payload

Object

Status Code

String

Successful

Boolean

## See Also [Salesforce Help](https://help.salesforce.com) --- product: Salesforce Einstein Analytics Connector version: 4.0 is-latest-version: true --- # Upgrading and Migrating Salesforce Einstein Analytics Connector to Version 4.x > For the full documentation index, see: https://docs.mulesoft.com/llms.txt Upgrade Anypoint Connector for Salesforce Einstein Analytics Cloud (Salesforce Analytics Connector) from version 3.x to version 4.x. ## Supported Upgrade Paths
From VersionTo Version

3.x

4.x

## Changes ### 4.0 - Salesforce Analytics Connector now supports the [OAuth Client Credentials](https://docs.mulesoft.com/salesforce-analytics-cloud-connector/latest/salesforce-analytics-connector-reference#salesforce-analytics_oauth-client-credentials) connection type, which enables automated, server-to-server integrations that don’t require user interaction. - The **Username Password** connection type is supported for Salesforce API v64.0 and earlier versions only. If your integration uses the **Username Password** connection type with a Salesforce API version later than v64.0, migrate to a supported OAuth connection type, such as [OAuth 2.0](https://docs.mulesoft.com/salesforce-analytics-cloud-connector/latest/salesforce-analytics-connector-reference#salesforce-analytics_basic), [OAuth Client Credentials](https://docs.mulesoft.com/salesforce-analytics-cloud-connector/latest/salesforce-analytics-connector-reference#salesforce-analytics_oauth-client-credentials), [OAuth JWT](https://docs.mulesoft.com/salesforce-analytics-cloud-connector/latest/salesforce-analytics-connector-reference#salesforce-analytics_oauth-jwt-connection), or [OAuth SAML Bearer](https://docs.mulesoft.com/salesforce-analytics-cloud-connector/latest/salesforce-analytics-connector-reference#salesforce-analytics_oauth-saml-connection). ## Requirements Ensure your system meets the following compatibility requirements before you perform the upgrade:
Application/ServiceVersion

Mule runtime

4.6.0 and later

## Upgrade Prerequisites Before you perform the upgrade, you must: 1. Create a backup of your files, data, and configuration in case you need to restore to the previous version. 2. Ensure that your Mule runtime version is 4.6.0 or later. 3. If your app uses the **Username Password** connection type with a Salesforce API version later than v64.0, migrate to the **OAuth Client Credentials**, **OAuth JWT**, **OAuth SAML Bearer**, or **OAuth 2.0** connection type. ## Upgrade Steps Follow these steps to perform the upgrade from Salesforce Analytics Connector 3.x to Salesforce Analytics Connector 4.x: 1. In Anypoint Studio, create a Mule project. 2. In the Mule Palette view, click **Search in Exchange**. 3. In the **Add Dependencies to Project** window, enter `Salesforce Einstein Analytics` in the search field. 4. In the **Available modules** section, select **Salesforce Einstein Analytics Connector - Mule 4** and click **Add**. 5. Click **Finish**. 6. Verify that the `mule-sfdc-analytics-connector` dependency version is `4.x.x` in the `pom.xml` file, where `x.x` is the minor release and patch version number. For example, if you are upgrading to v4.0, the dependency version in the `pom.xml` file should be `4.0.0`. Studio upgrades the connector automatically. ## Verify the Upgrade After you install the latest version of the connector, follow these steps to verify the upgrade: 1. In Studio, verify that there are no errors in the **Problems** or **Console** views. 2. Check the project `pom.xml` file and verify that there are no problems. 3. Test the connection and verify that the operations work. ## Troubleshooting If there are problems with caching the parameters and caching the metadata, try restarting Studio. ## Revert the Upgrade If it is necessary to revert to the previous version of Salesforce Analytics Connector, change the `mule-sfdc-analytics-connector` dependency version in the project’s `pom.xml` file to the previous version. You must update the project’s `pom.xml` file in Anypoint Studio. ## See Also - [Introduction to Anypoint Connectors](https://docs.mulesoft.com/connectors/introduction/introduction-to-anypoint-connectors) - [Salesforce Einstein Analytics Cloud Connector Overview](https://docs.mulesoft.com/salesforce-analytics-cloud-connector/latest/) - [Salesforce Einstein Analytics Connector Reference](https://docs.mulesoft.com/salesforce-analytics-cloud-connector/latest/salesforce-analytics-connector-reference) - [Salesforce Einstein Analytics Connector Release Notes](https://docs.mulesoft.com/release-notes/connector/salesforce-analytics-connector-release-notes-mule-4)