About the Recipes

Using the Slack recipes, you can:
  • Create a public or private channel for communication on the Slack application.
  • Post a message to a public or private Slack channel.
To run the Slack recipes, you must configure the connections with the details necessary to access the Slack application. You can then trigger the recipes through a REST request and supply the necessary request payload.
  • For the REST — Slack | Create a Channel recipe, you must supply the name and type for the new channel you want to create as the payload. The Slack Adapter in the recipe is subsequently invoked, and it creates the channel as specified in your Slack workspace. The response containing the channel-creation details is returned to you.
  • For the REST — Slack | Post a Message recipe, you must supply the massage you want to post and the name of the channel you want to post the message in as payload. The Slack Adapter in the recipe is subsequently invoked, and it posts the message in the specified Slack channel. The response containing the message-post details is returned to you.
Recipe Name Description REST Commands and Example Payloads
Create a Channel

Creates a public or private channel for communication on the Slack application.

REST API Command:

POST: https://<host:port>/ic/api/integration/v2/flows/rest/project/ORCL-R-SLACK_CREATE_CHANNEL/ORCL-R-SLACK_CREATE_CHANNEL/1.0/createChannel

Example Request Payload:
{
  "channelName": "New-Channel",
  "is-private": "true"
}
Example Response Payload:
{
  "ok": "true",
  "channel": {
    "id": "C01SGRKT84E",
    "name": "New-Channel",
    "is_channel": "true",
    "is_group": "false",
    "is_im": "false",
    "created": "1617017971",
    "is_archived": "false",
    "is_general": "false",
    "unlinked": "0",
    "name_normalized": "new-channel",
    "is_shared": "false",
    "creator": "U01PUKGN6SK",
    "is_ext_shared": "false",
    "is_org_shared": "false",
    "is_pending_ext_shared": "false",
    "is_member": "true",
    "is_private": "true",
    "is_mpim": "false",
    "last_read": "0000000000.000000"
  }
}
Post a Message Posts a message to a public or private Slack channel. REST API Command:

POST: https://<host:port>/ic/api/integration/v2/flows/rest/project/ORCL-R-SLACK_PUSH_NOTIFICA/ORCL-R-SLACK_PUSH_NOTIFICA/1.0/postMessage

Example Request Payload:
{
  "Message": "Test Message",
  "channelName": "new-channel"
}
Example Response Payload:
{
  "ok": "true",
  "channel": "C01SGRKT84E",
  "ts": "1617031570.000300",
  "message": {
    "bot_id": "B01SC4EJ4JU",
    "type": "message",
    "text": "Test Message",
    "user": "",
    "ts": "1617031570.000300",
    "team": ""
  }
}

System and Access Requirements

  • Oracle Integration, Version 23.6.0.0.0, or higher

  • Slack
  • An account on Slack with the Administrator role