Connecting SAS JMP to Salesforce
JMP is the SAS software product for data visualisation and analytics on the desktop.
The Salesforce ODBC driver enables you to extract Salesforce data for analysis in SAS JMP.
The Salesforce ODBC driver is available to download from the Easysoft web site:
- Download the Windows Salesforce ODBC driver.
- Install and license the Salesforce ODBC driver on the machine where SAS is installed.
For installation instructions, refer to the Salesforce ODBC driver documentation.
Before you can use the Salesforce ODBC driver to connect SAS JMP to Salesforce, you need to configure an ODBC data source. An ODBC data source stores the connection details for the target database (for example, Salesforce) and the ODBC driver that is required to connect to it (for example, the Salesforce ODBC driver).
SAS JMP is a 32-bit application and so you need to use it with a data source configured in the 32-bit ODBC Data Source Administrator (%WINDIR%\SysWOW64\odbcad32.exe
).
To create a Salesforce ODBC driver data source:
- Choose the System DSN tab, and then choose Add.
- In the Create New Data Source dialog box, choose Easysoft ODBC-Salesforce driver, and then choose Finish.
- Complete the DSN Setup dialog box:
Setting Value DSN Salesforce User Name The name of your Salesforce user. For example, myuser@mydomain.com
.Password The password for your Salesforce user. Token The security token for your Salesforce user, if required. To find out whether you need to supply a security token, choose the Test button. If the connection attempt fails with an error which contains
LOGIN_MUST_USE_SECURITY_TOKEN
, you need to supply one.Salesforce emails the security token to the email address associated with your Salesforce user account. If you have not received a security token, you can regenerate it. Salesforce will then email the new security token to you. To regenerate your security token, log in to Salesforce and then choose Setup from the user menu. Search for "security token" in the Quick Find box. Choose Reset Security Token in the Reset Security Token page. When you receive the token in your email client, copy it and then paste it into the Token field.
- Use the Test button to verify that you can successfully connect to Salesforce.
Follow these steps to analyse some Salesforce data in SAS JMP.
- In SAS JMP, choose File > New Database Query.
The Select Database Connection dialog box is displayed.
- Choose the New Connection button.
The Select Data Source dialog box is displayed.
- Choose the Machine Data Sources tab.
- Choose your Salesforce ODBC data source from the list.
- Use the OK button to dismiss the dialog boxes until you return to the Select Database Connection dialog box.
- Choose the Next button.
The Select Tables for Query dialog box is displayed.
- In the Available Tables list, double-click Account.
- Choose the Build Query button.
A dialog box is displayed that lets you choose columns from the Account table (object).
- In the Available Columns list, double-click BillingCity and AnnualRevenue.
- Choose the Run Query button.
- In the resultant JMP window, choose Graph.
The Graph Builder window is displayed.
- Drag the BillingCity column to the X axis and the AnnualRevenue column to the Y axis.
The annual revenue data is displayed in the graph, broken down by billing city.