Slack And ServiceNow Integration

ServiceNow Slack Integration Using Integration Hub

Slack requirements:

  • Slack account
  • Slack workspace owner credentials for admin scope permissions

Scope of integration

  1. Using WebHooks Spoke
  2. Notification Management
  3. Using Slack Spoke
  4. Channel Management
  5. Notification Management
  6. User Management

Category Permission Name Action can be performed
Channel Management channels:write
groups:write
im:write
mpim:write  
Slack Spoke
Add User to ChannelArchive ChannelCreate ChannelLook Up Channel HistoryLook Up ConversationRemove User from Channel
Notification Management chat:write
chat:write:bot
chat:write:user  
Using WebHooks Spokes
Post a MessagePost Actionable MessagePost Approval MessagePost Change DetailsPost Incident DetailsPost MessagePost Response to SlackUpdate Approval RecordPost Problem Details
User Management users:read.email
users:read
admin
Slack Spoke
Create User Deactivate UserLookup User

 

Slack Configuration Steps:

  1. Login with your admin account
  2. Create App : https://api.slack.com/
  3. Set Redirect URL : https://YOUR INSTANCE.service-now.com/oauth_redirect.do
  4. Scopes (Add on Oauth scope): Provide below permission.
    • chat:write
    • chat:write:bot
    • chat:write:user
    • channels:write
    • groups:write
    • im:write
    • mpim:write
    • users:read.email
    • users:read
    • admin
  5. Install App to workspace

ServiceNow Configuration Steps:

  1. Enable the IntegrationHub plugin.
  2. Create OAuth Profile: System OAuth – > Application Registry -> Connect to a third party OAuth Provider
  3. Fill all required details which you will get from Slack.
  4. Navigate to integrationhub and create new credential.
  5. Click on “Get OAuth Token” related link.
  6. Go to Integrationhub -> connection & credential aliases and create one record.
  7. Go to manage Token and edit the expiry date.
  8. Create one HTTP connection from related list of connection & credential aliases. Select your credential and fill Connection URL as https://api.slack.com.
  9. Go to flow designer and create one simple flow to push message in Slack.

LEAVE A REPLY

Please enter your comment!
Please enter your name here