Slack Integration using Slash command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-20-2021 12:52 AM
I am trying to achieve an integration with slack using slash commands such that based on the command and params passed with the slash command from slack I can perform actions in servicenow.
However, when I execute the command, I am getting the error: "/servicenow failed with error dispatch_failed".
I have performed following actions in slack: Created an app -> Created a slash command -> Install app to workspace.
Attributes for slash command:
Command: /servicenow
Request URL: https://<instance_name>.service-now/com/api/332284/slack/<app_name>
Usage hint: create incident
I have performed following actions in servicenow: Created a scripted REST message with path that is specified in the slash command. Set that request type as required by slack. Set 'required authentication' as false.
Please let me know if i am missing anything or doing something incorrectly.
- Labels:
-
IntegrationHub
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-20-2021 12:59 AM
Hi Mayank,
Integrating Slack's Slash Commands with ServiceNow using processors. This allows users to send information to Servicenow where ServiceNow can respond.
Refer here:
https://medium.com/@JeffManville/how-to-integrate-servicenow-slacks-slash-commands-ecbddaa7a96a
I would consider this tutorial a continuation of Joey Day's tutorial here: http://joeyday.com/2015/03/02/integrating-servicenow-with-slack/
Also,
https://api.slack.com/interactivity/slash-commands
https://community.servicenow.com/community?id=community_blog&sys_id=e28f251adbe5b344f7fca851ca961961
This should be enough for you to achieve your requirement.
Don't forget to mark my answer Correct & Helpful, if answered rightly.
Thanks,
Sandeep