VOOZH about

URL: https://www.cdata.com/kb/tech/ibmcloudobjectstorage-cloud-excel-desktop.rst

⇱ Access Live IBM Cloud Object Storage Data in Excel (Desktop) via Connect AI


Access Live IBM Cloud Object Storage Data in Excel (Desktop) via Connect AI

πŸ‘ Dibyendu Datta
Dibyendu Datta
Lead Technology Evangelist
Use CData Connect AI to gain access to live IBM Cloud Object Storage data from your Excel spreadsheets.

Microsoft Excel is a widely used spreadsheet software application, primarily used for tasks related to data management, analysis, and visualization. When combined with CData Connect AI, you gain immediate access to IBM Cloud Object Storage data directly within Excel, facilitating data analysis, collaboration, calculations, and more.This article shows how to connect to IBM Cloud Object Storage in your Connect AI instance and access live IBM Cloud Object Storage data in Excel spreadsheets.

CData Connect AI provides a pure cloud-to-cloud interface for IBM Cloud Object Storage, allowing you to easily access live IBM Cloud Object Storage data in Excel for the web. Simply use the Connect AI Add-In to query live data (or write your own). Using optimized data processing out of the box, CData Connect AI pushes all supported query operations (filters, JOINs, etc) directly to IBM Cloud Object Storage, leveraging server-side processing to quickly return IBM Cloud Object Storage data.

This setup requires a CData Connect AI instance and the CData Connect AI Add-In for Excel. To get started, sign up a free trial of Connect AI and install the free Connect AI Excel Add-In.


Configure IBM Cloud Object Storage Connectivity for Excel

Connectivity to IBM Cloud Object Storage from Excel is made possible through CData Connect AI. To work with IBM Cloud Object Storage data from Excel, we start by creating and configuring a IBM Cloud Object Storage connection.

  1. Log into Connect AI, click Sources, and then click Add Connection
  2. πŸ‘ Adding a Connection
  3. Select "IBM Cloud Object Storage" from the Add Connection panel
  4. πŸ‘ Selecting a data source
  5. Enter the necessary authentication properties to connect to IBM Cloud Object Storage.

    Register a New Instance of Cloud Object Storage

    If you do not already have Cloud Object Storage in your IBM Cloud account, follow the procedure below to install an instance of SQL Query in your account:

    1. Log in to your IBM Cloud account.
    2. Navigate to the

    Connecting using OAuth Authentication

    There are certain connection properties you need to set before you can connect. You can obtain these as follows:

    API Key

    To connect with IBM Cloud Object Storage, you need an API Key. You can obtain this as follows:

    1. Log in to your IBM Cloud account.
    2. Navigate to the Platform API Keys page.
    3. On the middle-right corner click "Create an IBM Cloud API Key" to create a new API Key.
    4. In the pop-up window, specify the API Key name and click "Create". Note the API Key as you can never access it again from the dashboard.

    Cloud Object Storage CRN

    If you have multiple accounts, specify the CloudObjectStorageCRN explicitly. To find the appropriate value, you can:

    • Query the Services view. This will list your IBM Cloud Object Storage instances along with the CRN for each.
    • Locate the CRN directly in IBM Cloud. To do so, navigate to your IBM Cloud Dashboard. In the Resource List, Under Storage, select your Cloud Object Storage resource to get its CRN.

    Connecting to Data

    You can now set the following to connect to data:

    • InitiateOAuth: Set this to GETANDREFRESH. You can use InitiateOAuth to avoid repeating the OAuth exchange and manually setting the OAuthAccessToken.
    • ApiKey: Set this to your API key which was noted during setup.
    • CloudObjectStorageCRN (Optional): Set this to the cloud object storage CRN you want to work with. While the connector attempts to retrieve this automatically, specifying this explicitly is recommended if you have more than Cloud Object Storage account.

    When you connect, the connector completes the OAuth process.

    1. Extracts the access token and authenticates requests.
    2. Saves OAuth values in OAuthSettingsLocation to be persisted across connections.
    πŸ‘ Configuring a connection (Salesforce is shown)
  6. Click Save & Test
  7. Navigate to the Permissions tab in the Add IBM Cloud Object Storage Connection page and update the User-based permissions. πŸ‘ Updating permissions

With the connection configured, you are ready to connect to IBM Cloud Object Storage data from Excel.

Access Live IBM Cloud Object Storage Data in Excel

The steps below outline connecting to CData Connect AI from Excel to access live IBM Cloud Object Storage data.

  1. Open Excel, create a new sheet (or open an existing one).
  2. Click Insert and click Get Add-ins. (if you have already installed the Add-In, jump to step 4).
  3. Search for CData Connect AI Add-In and install the Add-in. πŸ‘ Install the Add-In
  4. Click Data and open the CData Connect AI Add-In.
  5. In the Add-In panel, click Authorize to authenticate with your CData Connect AI instance πŸ‘ Authorizing the Add-In
  6. In the CData Connect AI panel in Excel, click Import πŸ‘ CData Connect AI panel in Excel
  7. Choose a Connection (e.g. IBMCloudObjectStorage1), Table (e.g. Objects), and Columns to import πŸ‘ CData Connect AI panel in Excel
  8. Optionally add Filters, Sorting, and a Limit πŸ‘ Choosing a Connection, Table, and Columns
  9. Click Execute to import the data πŸ‘ Executing the Query

Live Access to IBM Cloud Object Storage Data from Cloud Applications

Now, you have a direct, cloud-to-cloud connection to live IBM Cloud Object Storage data from your Excel workbook. You can add more data to your workbook for calculations, aggregations, collaboration, and more.

πŸ‘ Imported data (Salesforce is shown)

Try CData Connect AI and get real-time data access to hundreds of SaaS, Big Data, and NoSQL sources directly from your cloud applications.

Ready to get started?

Learn more about CData Connect AI or sign up for free trial access:

Free Trial