Pull from Salesforce Sales Cloud

SalesForce Sales Cloud brings customer information together into an integrated platform, and then provides access to thousands of applications through the AppExchange.

Salesforce Sales Cloud is a REST API that provides data for files and reports. Amperity can pull this data from Salesforce Sales Cloud for any or all of the resources that are defined for the Salesforce account.

  • Salesforce Sales Cloud query results are always loaded into Amperity in full.

  • Any date range supplied indirectly via a courier group is ignored.

  • No input is needed when running a query manually.

This topic describes the steps that are required to pull customer records to Amperity from Salesforce Sales Cloud:

  1. Get details

  2. Add data source and feed

Get details

Salesforce Sales Cloud requires the following configuration details:

  1. The username and password of a Salesforce account configured for API access.

  2. The Salesforce Sales Cloud security token that belongs to username. (The security token is not required if IP range policies are configured from the Salesforce admin console.)

  3. The scheme and host for a custom Salesforce Sales Cloud URL, if used by customer.

  4. If Salesforce Sales Cloud will send data to Amperity from a sandbox instance.

  5. A sample for each file to simplify feed creation.

Tip

Use SnapPass to securely share the credentials and setup information for Salesforce Sales Cloud between your company and your Amperity representative.

Add data source and feed

Add a data source that pulls data from Salesforce Sales Cloud.

Configure Amperity to pull one or more files, and then for each file review the settings, define the schema, activate the courier, and then run a manual workflow. Review the data that is added to the domain table.

To add a data source for any SFTP site

Step 1.

Open the Sources page to configure Salesforce Sales Cloud.

Click the Add courier button to open the Add courier dialog box.

Select Salesforce Sales Cloud. Do one of the following:

  1. Click the row in which Salesforce Sales Cloud is located. Sources are listed alphabetically.

  2. Search for Salesforce Sales Cloud. Start typing “sales”. The list will filter to show only matching sources.

Step 2.

Credentials allow Amperity to connect to Salesforce Sales Cloud and must exist before a courier can be configured to pull data from Salesforce Sales Cloud. Select an existing credential from the Credential dropdown, and then click Continue.

Tip

A courier that has credentials that are configured correctly will show a “Connection successful” status, similar to:

Add
Step 3.

Select the file that will be pulled to Amperity, either directly (by going into the SFTP site and selecting it) or by providing a filename pattern.

Add

Click Browse to open the File browser. Select the file that will be pulled to Amperity, and then click Accept.

Use a filename pattern to define files that will be loaded on a recurring basis, but will have small changes to the filename over time, such as having a datestamp appended to the filename.

Note

For a new feed, this file is also used as the sample file that is used to define the schema. For an existing feed, this file must match the schema that has already been defined.

Add

Use the PGP credential setting to specify the credentials to use for an encrypted file.

Add
Step 4.

Review the file.

Add

The contents of the file may be viewed as a table and in the raw format. Switch between these views using the Table and Raw buttons, and then click Refresh to view the file in that format.

Note

PGP encrypted files can be previewed. Apache Parquet PGP encrypted files must be less than 500 MB to be previewed.

Amperity will infer formatting details, and then adds these details to a series of settings located along the left side of the file view. File settings include:

  • Delimiter

  • Compression

  • Escape character

  • Quote character

  • Header row

Review the file, and then update these settings, if necessary.

Step 5.

A feed defines the schema for a file that is loaded to Amperity, after which that data is loaded into a domain table and ready for use with workflows within Amperity.

New feed

To use a new feed, choose the Create new feed option, select an existing source from the Source dropdown or type the name of a new data source, and then enter the name of the feed.

Add

After you choose a load type and save the courier configuration, you will configure the feed using the data within the sample file.

Existing feed

To use an existing feed, choose the Use existing feed option to use an existing schema.

Add

This option requires this file to match all of the feed-specific settings, such as incoming field names, field types, and primary keys. The data within the file may be different

Pull data

Define how Amperity will pull data from Salesforce Sales Cloud and how it is loaded to a domain table.

Add

Use the Upsert option to use the selected file update existing records and insert records that do not exist.

Use the Truncate and upsert option to delete all records in the existing table, and then insert records.

Note

When a file is loaded to a domain table using an existing file, the file that is loaded must have the same schema as the existing feed. The data in the file may be new.

Step 6.

Use the feed editor to do all of the following:

  • Set the primary key

  • Choose the field that best presents when the data in the table was last updated; if there is not an obvious choice, use the “Generate an updated field” option.

  • For each field in the incoming data, validate the field name and semantic tag columns in the feed. Make any necessary adjustments.

  • For tables that contain customer records, enable the “Make available to Stitch” to ensure the values in this data source are used for identity resolution.

When finished, click Activate.

Step 7.

Find the courier related to the feed that was just activated, and then run it manually.

On the Sources page, under Couriers, find the courier you want to run and then select Run from the actions menu.

Add

Select a date from the calendar picker that is before today, but after the date on which the file was added to the Salesforce Sales Cloud bucket.

Add

Leave the load options in the Run courier dialog box unselected, and then click Run.

After the courier has run successfully, inspect the domain table that contains the data that was loaded to Amperity. After you have verified that the data is correct, you may do any of the following:

  • If the data contains customer records, edit the feed and make that data available to Stitch.

  • If the data should be loaded to Amperity on a regular basis, add the courier to a courier group that runs on the desired schedule.

  • If the data will be a foundation for custom domain tables, use Spark SQL to build out that customization.