Excel Add-In for Slack

Build 24.0.9060

Establishing a Connection

Configure a Connection Profile

From the CData ribbon, click Get Data and select From Slack connection/s to launch the CData Query window. To setup a new connection, you will have to click the New Slack Connection button. Here you can set the connection settings, test the connection, and save the connection profile.

Connecting to Slack

The add-in supports the following authentication mechanisms:

  • OAuth (Slack's "V2" implementation of OAuth 2.0 and OAuth via OpenId Connect are supported)
  • user token authentication

OAuth

Set AuthScheme to OAuth.

The following subsections describe how to authenticate to Slack via the available OAuth flows.

There are two supported OAuth authentication methods available. The setup process is the same for all OAuth methods (aside from the scopes set for custom apps), so configure the add-in in accordance with the type of app you're using to authenticate.

  • Set OAuthVersion to v2 for Modern Slack apps.
  • Set OAuthVersion to openid for Slack apps using "Sign in with Slack".

Desktop Applications

CData provides an embedded OAuth application that simplifies authentication at the desktop; that is, in situations where the user is using a local server not connected to the internet.

You can also authenticate from the desktop via a custom OAuth application, which you configure and register at the Slack console. For further information, see Creating a Custom OAuth Application.

Before you connect, set these properties:

  • InitiateOAuth: GETANDREFRESH. Used to automatically get and refresh the OAuthAccessToken.
  • Custom OAuth applications only:
    • OAuthClientId: The client Id assigned when you registered your custom OAuth application.
    • OAuthClientSecret: The client secret assigned when you registered your custom OAuth application.
    • CallbackURL: The redirect URI defined when you registered your custom OAuth application.

When you connect, the add-in opens Slack's OAuth endpoint in your default browser. Log in and grant permissions to the application.

When the access token expires, the add-in refreshes it automatically.

User Token

After Creating a Custom OAuth Application and selecting scopes, as an alternative to configuring the standard OAuth credentials (client, client secret, and callback URL), you can use a User OAuth Token to authenticate.

To use a token, set AuthScheme to UserToken and set UserToken to the value of the "User OAuth Token", found in your app settings in Features > OAuth & Permissions.

Connection Properties

The Connection properties describe the various options that can be used to establish a connection.

Managing Connections

After successfully authenticating to Slack you will be able to customize the data you are importing. To learn more about this, see Managing Connections.

See Also

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9060