Slack connection

Slack is a web-based, real-time, and archived messaging app for your team.

Prerequisite

Before you can connect to Slack connection, you will need to enable the AppConnect connection. This will enable the connection to appear in the list of available connectors for you to use.

Enabling IBM Slack connector

To enable the connector, you will need to run the following:

  1. Login to the cluster and enable AppConnect:
    oc login -u <username> -p <password> <host:port>
    oc project cpd
    oc edit datasift datasift-cr
    
    Then in the spec section:
    set enableAppConnect: true  
    
  2. Login to the cluster and edit the configmap auto-register-custom-datasource-types with the following details:
    oc login -u <username> -p <password> <host:port>
    oc project cpd
    oc edit cm config-wdp-connect-connection
    
    Then in the data section:
    set auto-register-custom-datasource-types: appconnect_mssharepoint:grpc+tls://wdp-connect-adapter-appconnect:443,appconnect_filenet:grpc+tls://wdp-connect-adapter-appconnect:443
    
    Alternatively, you can manually register by running:
    curl --request POST \
      --url '<API_HOST>/v2/datasource_types' \
      --header 'Authorization: Bearer <TOKEN>' \
      --header 'Content-Type: application/json' \
      --data '{
       "flight_info": {
       	 "flight_uri": "grpc+tls://wdp-connect-adapter-appconnect:443",
       	 "ssl_certificate_validation": "false"
       },
       "origin_country": "us"
    }'
    

Create a connection to IBM Slack

To create the connection asset, you need these connection details:

  • Authentication type:
    • BASIC_OAUTH:
      • Access token: The basic access token to be used to authenticate AppConnect with your Slack content.

Slack setup

Quickstart guide

Supported file types

The Slack connection supports structured and unstructured file formats.

The connection supports the following structured file types: Avro, CSV, Delimited text, Excel, JSON, ORC, Parquet, SAS, SAV, SHP, and XML.

The connection supports modes for reading and writing binary data. These modes can be used to read and write the unstructured data formats such as: DOC, DOCX, MD, PDF, PPT, PPTX, and TXT.

Learn more