How to integrate ServiceNow & Slack’s Slash Commands

  • A slack channel — if you don’t have one, you can create one here
  • A slack developer account — You can create one here
  • A ServiceNow instance — you can get developer instance if you create an account here

Step 1. Create the Processor

New Processor

Step 2. Make the processor public

New Public Page

Step 3. The Slash Command

Create New Command

Step 4. First Test

Step 5. Build the Staging Table

  • response URL
  • user_id
  • team_id
  • text
  • channel_name
  • token
  • command
  • channel_id
  • user_name
  • team_domain
  • method
  • querystring
  • x-forwarded-host
  • accept
  • x-forwarded-proto
  • accept-encoding
  • content-type
  • host
  • x-forwarded-for
  • content-length
  • user-agent

Step 6. Replacing the Processor Script

Step 7. Test the slash command again

Step 8. Responding/Running Server side actions

Response

Highly Recommended: Adding Some Security

  1. Validate the REST Call using the token field

Conclusion

--

--

--

I like helping people with Code & Math. I try to make everything I do a version of that.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Telegram Messenger can use Google Translate API for free! How?

Unit testing with Python

Learning Journal | Nearsoft Academy | Week 12

Remove Terraform resources selectively :

How Does Selenium Help in Web Scraping Job Postings from Indeed?

Go: GOMAXPROCS & Live Updates

Step by Step Introduction to Basic Concept of Kubernetes

Poor Man’s Disk Monitoring

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Jeff Manville

Jeff Manville

I like helping people with Code & Math. I try to make everything I do a version of that.

More from Medium

Getting list of Git files owned by a specific owner based on the CODEOWNERS file

Getting Java-11 docker images to run on mac m1 (arm64) with adoptium/temurin

WPF: Using Commands for button actions.

Converting CSV to Database