Scroll to top
Please assign a menu to the primary menu location

How To Use Slack Adapter To Send Messages With OIC


Karan Tulsani - July 12, 2022 - 0 comments

Reading Time: 3 minutes

The Slack adapter for Oracle Integration Cloud offers an effortless way of integrating with Slack. It is evident that Slack and other similar tools have changed the dynamics of the modern workforce and how we interact with our teams. There is a significant boost in productivity and collaboration with platforms like Slack.

The Slack Adapter provides outbound integration with Slack on the Oracle Integration Cloud platform. It is possible to build outbound integrations that invoke the Slack app and hence you can efficiently manage channels, invite new users, check profile details, upload and download work files and handle chat and groups.

Let us understand how it works.

The Problem

How to send message from OIC to Slack channel.

The Solution

The Slack Adapter for OIC can be used to solve this problem and integrate Slack on the Oracle Integration Cloud.

Some prerequisites to create a connection with Slack Adapter in OIC

Before you can create a connection with the Slack Adapter, you must satisfy the following prerequisites.

  • Have an OAuth application (published) on the Slack platform.
  • Client ID and client secret.
  • User Token Scopes defined
  • Fill the Redirect URL

When you create a Slack app, the Client Id and Secret are automatically created.

How to create a new OAuth app on Slack in 8 Easy Steps

Step 1:  Login to the slack API portal.

https://api.slack.com/

Step 2: Create a new app in slack.

OIC to Slack

OIC to Slack - step2

Step 3: Provide app name and choose workspace.

Step 4:  Click CreateApp.

Create app in Slack

Step 5:  Provide the OIC redirect callback URL in Slack App under OAuth & Permissions.

<OIC Instance URL>/icsapis/agent/oauth/callback

Slack-api

slack-api

Step 6: Add OAuth Scope for App.

slack-oauth

Step 7:  Install the App.

slack app installation

Step 8:  Note down secret and client id from basic information.

slack integration

 

Steps to create OIC connection for Slack Adapter

Step 1: Login to OIC instance.

Step 2: Under connections select Slack Adapter.

slack connections

Step 3: Provide client id, secret and Scope.

slack connections-secret

Step 4: Provide Consent.

OIC consent in Slack

Step 5: Test and Save the connection.

Step 6: Create a channel in Slack to send message from OIC.

Using Slack Adapter in OIC integration to send message

Step 1: Create an app driven integration with Trigger connection which can receive message as Request.

Request Payload Example:

{

“message”: “Hello”

}

Step 2: Add Slack Connection.

slackadapter

Step 3: Select operation as Send Message.

slackadapter

Step 4: Open Slack Mapper and map the channel name and Message as shown below:

slackadapter

Step 5:  Activate and Test the integration.

We hope that the above method can help you communicate efficiently from OIC to Slack channels.

Let us know what you think in the comments or write to us at business@conneqtiongroup.com.

Author avatar

Karan Tulsani

Karan works as the Delivery Head at Conneqtion Group, a Oracle iPaaS and Process Automation company. He has an extensive experience with various Banking and financial services, FMCG, Supply chain management & public sector clients. He has also led/been part of teams in multitude of consulting engagements. He was part of Evosys and Oracle's consulting team previously and worked for clients in NA, EMEA & APAC region.

Related posts

Post a Comment

Your email address will not be published. Required fields are marked *