App Connectivity

How to get connected to your IoT Cloud.

First, we’ll need to establish the connection between your Salesforce Org and the IoT Cloud infrastructure. Once that connection is established, we can configure Salesforce Object Customization, Salesforce Process Customization, and Thing-Type Customization. Then, we’ll create a new Thing and demonstrate connectivity. Let’s get Things set-up!

In order for the Bolt Data Connect Salesforce App to communicate with the IoT infrastructure, we need to authorize Salesforce to access the IoT Cloud, and we need authorize the IoT Cloud to access Salesforce.

Authorize Salesforce to access the IoT Cloud

  1. First, your Bolt Data Connect support representative should provide you with an API Token, an Access Key, and a Secret Key. Keep this information safe. It’s essentially your username and password to your IoT Cloud.
  1. From the Bolt Data Connect App (if you’re not already there, follow the Launching the App section in the App Tour), go to the IoT Setup tab.
  2. Select Global Settings.
  3. In the IoT API Token field enter the API Token you received in Step 1.
  4. Select the IoT Cloud API link next to API Named Credential.
    1. Select Edit.
    2. In the AWS Access Key ID field, enter the Access Key received in Step 1.
    3. Next to AWS Secret Access Key field, enter the Secret Key received in Step 1.
    4. You shouldn’t need to modify any other settings here. Click Save and close the tab (if it opened in a new tab).

Authorize the IoT Cloud to access your Salesforce Org

In order for the IoT Cloud to send Alerts to your Salesforce Org, you must Authorize the app to access the Salesforce APIs associated with your Org.

  1. From the Bolt Data Connect App (if you’re not already there, follow the Launching the App section in the App Tour), go to the IoT Setup tab.
  2. Select Global Settings.
  3. Next to the Connected Application label, select Authorize.
Authorize the Connected Application

Authorize the Connected Application

  1. You’ll be redirected to a Salesforce Authorization screen. Select Allow.
Allow the IoT Cloud to access your Org

Allow the IoT Cloud to access your Org

  1. After selecting Allow, the status of the authorization will be displayed.
  2. When successful, the authorization status message window will close automatically (or you can close it manually if you chose). In the unlikely event you encounter an error during authorization, please let us know as soon as practical!
Authorization success message

Authorization success message

  1. That’s it! This should only be required once, but should you ever need to re-establish this authorization, you can repeat these steps at any time.

  2. To revoke authorization at any time, you can follow these steps:

    1. Select Settings (Salesforce Settings Gear).
    2. Select Users, then Users and find the User you used to Authorize.
    3. Scrolling down, you should find the “OAuth Connected Apps” section where you can select Revoke to revoke access to the Connected App.
    4. You can re-authorize the IoT Cloud at any time by following the steps above.
  3. You can check which Saleforce User is currently authorized by the IoT Cloud at any time.

    1. Navigate to the IoT Admin Page, then select Global Settings.
    2. The User should be displayed next to the Connected Application label:
    Authorization check

    Authorization check

Rotating Bolt Data Connect Access Keys

The Bolt Data Connect Access Keys can be rotated at any time. This helps limit any unintended access to your data. We recommend that you refresh Access Keys at least every 45 days, but the more frequent, the better.

  1. From the Bolt Data Connect App (if you’re not already there, follow the Launching the App section in the App Tour), go to the IoT Setup tab.

  2. Select Global Settings.

  3. You’ll need to have the Named Credential open in a separate window/tab:

    1. Select the IoT Cloud API link (should open in a new tab; if not, keep this tab/window open to the Named Credential and open a new tab to the IoT Setup tab, Global Settings).
    2. Select Edit.
    3. In the next step you’ll be editing the following fields: AWS Access Key ID and AWS Secret Access Key.
    Named credential fields

    Named credential fields

  4. Once the Named Credential tab/window is staged, back on the IoT Admin page, select Rotate Keys.

  5. New Keys should appear under the Rotate Keys button with a copy link next to each.

New keys

New keys

  1. Select “Copy” next to AWS Access Key ID, and paste into the respective field on the Named Credential.
  2. Repeat for AWS Secret Access Key.
  3. Select Save on the Named Credential and close that tab/window.
  4. To clear the keys from the Global Settings screen, return to the IoT Setup tab.
  5. To test the new keys, return to the Global Settings screen from the IoT Setup tab (which automatically checks who’s authorized) or visit the IoT Console and search for a Thing.

IoT Connector API

For customers with their own IoT Cloud, we’ve fully exposed the IoT Cloud Connector API to allow you to use the Bolt Data Connect Salesforce App with your own IoT Cloud by following a few simple steps. (See below)

IoT Cloud Connector

IoT Cloud Connector

  1. Call the /IoTAlert Web Service from your IoT Cloud
  2. Implement the IoT Connector Apex class [SPKI.IoT_Connector_API] to call your IoT Cloud’s exposed APIs
IoT Cloud Connector API

IoT Cloud Connector API

Last modified November 8, 2023: Absolute Image paths for all-content (7aa8323)