Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Inputs on Slack Spoke Action- Post Actionable Message

Arjit Gourav
Tera Contributor

Hi Team,

 

We have configured our flow from ServiceNow to Slack (Delivering Required Notifications). Now we have to configure the bidirectional setup i.e. sending information back from Slack to ServiceNow which primarily includes Approval Action as well.

 

We have been trying with Slack Spoke's post actionable message in below manner and facing some issues.

As we know, this Action generates Approve and Reject button on Slack & on Click of those buttons we need to take action on ServiceNow Side

But upon configuring that, we are getting error interactivity Url need to be configured on click of the button on Slack Side


 To achieve this, we are using interactivity & shortcuts in Slack Api & We have created Scripted rest Api on ServiceNow Side.

 

Need some help if any one has configured this action already if any other steps need to be taken

4 REPLIES 4

HarshR158979806
Tera Guru

Hello @Arjit Gourav

 
Yes I have configured this action

You have to put the the url of your Scripted Rest Api into interactivity & shortcut URL
if you already performed this operation, then tell me where are u stuck now.

Arjit Gourav
Tera Contributor

@HarshR158979806 On Slack Plugin utilization side, are you utilizing Webhooks or Post Actionable Message of Slack Spoke ?

 

If you are using post actionable message, so on click of the "Approve" and "Reject" button what parameters we need to send back to system along with interactivity URL (Scripted Rest API In ServiceNow).

Hi @Arjit Gourav 

I am using Post actionable message slack spoke!

FYI there is OOB Scripted Rest API that comes alongside with the slack plugin
name of scripted rest api -> Slack Interactive Payload

Please check it in your instance

Mark my response Helpful👍, if it helps you

Thank you

Hi @HarshR158979806 , We are also using the same but getting 500 error. Any idea why would we be getting that ?