Categories

Versions

You are viewing the RapidMiner Studio documentation for version 9.9 -Check here for latest version

Using the Salesforce Connector

This guide targets the new Connection Management introduced with RapidMiner Studio 9.3.

For the old Legacy Salesforce Connections see the9.2 documentation

The Salesforce Connector allows you to connect to Salesforce directly from RapidMiner Studio. It supports all CRUD operations (Create,Read,Update, and删除). This document will walk you through how to:

Connect to Salesforce

To configure a new Salesforce Connection, you will need the Connection details of your account (username, password, security token, URL).

  1. In RapidMiner Studio, right-click on the repository you want to store your Salesforce Connection in and chooseNew Connection IconCreate Connection.

    You can also click onConnections > Create ConnectionNew Connection Iconand select therepositoryfrom the dropdown of the following dialog.

  2. Give a name to the new Connection, and setConnection TypetoSalesforce IconSalesforce:

  3. Click onCreate IconCreateand switch to theSetuptab in the艾德it connectiondialog.

  4. Fill in the Connection details of your Salesforce configuration:

    The username and password are the same credentials you use for the Salesforce website. Your Salesforce account includes a security token that RapidMiner needs to make a connection. You can get the security token from your Salesforce registration email. If you do not have the registration email, you canresetthe security token.

    While not required, we recommend testing your new Salesforce Connection by clicking theConnection Test IconTest connectionbutton. If the test fails, please check whether the details are correct.

  5. ClickSave IconSaveto save the connection and close the艾德it connectiondialog.

You're ready to start using the Salesforce operators!

Read from Salesforce

TheRead Salesforceoperator allows you to read data from Salesforce. Let us start with reading some demo data:

  1. Drag aRead Salesforceoperator into theProcess Panel. Select your Salesforce Connection for theconnection entryparameter from the Connections folder of the repository you stored it in by clicking on therepository chooser iconbutton next to it:

    Alternatively, you can drag the Salesforce Connection from the repository into theProcess Paneland connect the resulting operator with theRead Salesforceoperator.

  2. Connect the operator's output port to the result port of the process:

  3. Click on theBuild Salesforce Query IconBuild Salesforce Querybutton to open the query editor. This dialog allows you to create a Salesforce SOQL query.Simplemode (tab at the left of the window) provides you with an interface to build your query;Advancedmode allows you to write your own query.

  4. RunRun Processthe process! In the Result Perspective, you should see the result of your query:

Write to Salesforce

Writing an example set to Salesforce is straightforward: Load the example set and pass it to theWrite Salesforceoperator. The following example illustrates how to write an Excel sheet with demo data to Salesforce.

  1. Create an Excel sheet with the following data:

  2. Open a new processNew Process Iconin RapidMiner Studio.

  3. Read the created Excel sheet by using theRead Exceloperator. Add aWrite Salesforce操作流程和打开的连接rators accordingly. Select your configured Salesforce Connection and configure the properties as shown on the screen shot:

  4. RunRun Processthe process! In theResults的角度来看,您应该看到书面的实体:

Reset the security token

You can reset your Salesforce security token from the Salesforce website. This is a useful feature if you've lost your existing token or you want to disconnect from all applications using the token.

  1. Make sure you are logged in to the Salesforce website.

  2. Click on your account name and selectSettings:

  3. Open thePersonalgroup and click onReset My Security Token:

  4. Finally, click onReset Security Tokento get a new token via email.

Note that by resetting your token, applications will no longer be able to connect to your account until you re-enter the new security token.