Skip to main content

InCountry Salesforce Data Loader

About

The InCountry Salesforce Data Loader application allows you to import records with regulated data into Salesforce while localizing regulated or sensitive values on the InCountry platform within the country of origin.

Warning

To import non-regulated records into Salesforce, please use the native Salesforce Data Loader application.

Specifics of operation

The InCountry Salesforce Data Loader application supports all the specifics of data regulation policies available in the InCountry Data Residency for Salesforce package.

The application handles specifics of data regulation policies as follows:

  1. for the restriction and redaction policies: regulated data is first saved on the InCountry platform, then non-regulated data and hashed values of regulated data is saved to the Salesforce database.

  2. for the replication policy: a primary copy of regulated data is saved on the InCountry platform, then regulated data is replicated to the Salesforce database along with non-regulated data.

The application automatically retrieves configuration of data regulation policies and protected fields from the package installed in Salesforce, so you don’t need to regulate what fields should be treated as regulated. The hashing algorithm and other attributed are also retrieved from the package settings and applied accordingly.

The application does not support the automatic localization of regulated records across multiple countries, so you need to perform a separate import of records per each country.

Pre-requisites

  1. The InCountry Data Residency package in installed in Salesforce.

  2. The user who will perform import has access to the InCountry Data Residency package in Salesforce and its settings.

  3. Data regulation policies are configured in the package.

  4. Protected fields (fields with PII or sensitive data) are configured in the package.

  5. You have all the required connection details to connect to the InCountry platform, such as environment ID, Client ID, Client Secret, and REST API URL.

  6. Connection details correspond to the country where you want to localize regulated data.

  7. Import of regulated records is performed for one specific country at a time.

  8. Import of regulated records is performed within their country of origin, so there is no cross-border transfer.

Installing the application

  1. Request the application archive from the InCountry team.

  2. Download the application archive.

  3. Unzip the application archive to your local machine.

  4. Open the folder with the application.

Launching the application

  1. Open the folder with application.

  2. Start dataloader-57.0.1-uber.jar.

  3. In the License agreement dialog, click I accept.

  4. The application loads as follows:

Logging in to the application

  1. Launch the application.

  2. Click Insert/Upsert.

  3. In the Load Inserts/Load Upserts screen, select Production or Sandbox depending on the Salesforce instance you are using.

  4. Click Log in.

  5. In the opened form, enter the username and password to connect to the Salesforce instance.

  6. Click Log In.

  7. Grant access to the Salesforce instance by clicking Allow.

  8. Click Next.

  9. At the Step 1b. Log in to the InCountry service step, specify the connection details to the InCountry platform for the country where you want to localize regulated data, as follows:

    1. Environment ID - specify the identifier of the environment where regulated data will be stored.

    2. Client ID - specify the Client ID that you received after creation of a Salesforce service on the Portal.

    3. Client secret - specify the Client Secret that you received after creation of a Salesforce service on the Portal.

    4. REST API URL - specify the REST API URL that you received after creation of a Salesforce service on the Portal.

    5. Custom Portal URL - Check the box if you use any Portal different from https://portal.incountry.com to generate credentials and then specify the address of the endpoint to get the list of countries. For the Portal in China (https://cn-restapi-mt-01.alicloud.zhaoerxing.top), use https://portal.alicloud.zhaoerxing.top/api/v2/countries

  10. Click Log in.

Importing records into the InCountry platform and Salesforce

Using the InCountry Salesforce Data Loader application, you can perform various operations which include inserting, updating and upserting Salesforce records. The upsert operation combines inserting and updating a record.

Inserting records

  1. Log in to the application.

  2. At the Step 2. Select data objects step, select the Salesforce object. The application will create records of this object type in Salesforce from a CSV file.

  3. Click Browse.

  4. Select a CSV file with records you want to import into Salesforce and the InCountry platform.

  5. Click Next. Wait while the CSV file is being initialized and acknowledge upon completion.

  6. At the Step 3. Mapping step, click Create or Edit a Map.

  7. In the Mapping Dialog form, map Salesforce fields to columns in your CSV file by dragging them over the corresponding column name. If names of columns in the CSV file match the field names in Salesforce, you can click Auto-Match Fields to Columns to create mappings automatically.

  8. Click OK.

  9. Click Next.

  10. At the Step 4. Finish step, select the directory for log output.

  11. Click Finish.

  12. Confirm the operation by clicking Yes.

Import of records will start. This operation may require some time depending on the number of records you import.

Warning

If any regulated records are not imported, please check the error log file for details.

Upserting records

  1. Log in to the application.

  2. At the Step 2. Select data objects step, select the Salesforce object. The application will create records of this object type in Salesforce from a CSV file.

  3. Click Browse.

  4. Select a CSV file with records you want to import into Salesforce and the InCountry platform.

  5. Click Next. Wait while the CSV file is being initialized and acknowledge upon completion.

  6. At the Step 2a: Choose your field to use for matching step, select the field which will be matched to the selected Salesforce object.

  7. At the Step 2b: Choose your related objects step, select the relationship lookup fields which will be matched to the Owner and Parent objects. Otherwise, leave the selections blank.

  8. At the Step 3. Mapping step, click Create or Edit a Map.

  9. In the Mapping Dialog form, map Salesforce fields to columns in your CSV file by dragging them over the corresponding column name. If names of columns in the CSV file match the field names in Salesforce, you can click Auto-Match Fields to Columns to create mapping automatically.

  10. Click OK.

  11. Click Next.

  12. At the Step 4. Finish step, select the directory for log output.

  13. Click Finish.

  14. Confirm the operation by clicking Yes.

Import of records will start. This operation may require some time depending on the number of records you import.

Warning

If any regulated records are not imported, please check the error log file for details.