Service now integration with slack -how to configure messaging content with button type

haruka1
Tera Contributor

Can anyone help us with configuration of messaging content(button type) in integrating ServiceNow with slack?

We are integrating service now with slack. We have set up the integration using the IntegrationHub plugin and NowActions messaging app. Now we are able to send messages to slack when a table record is updated on ServiceNow.

The problem we face at the moment is that when we send a button type message to slack individual account and press the button(e.g. Approve/Reject) in slack channel, the result is not reflected on ServiceNow: the status of the record doesn't change(doesn't get approved or rejected). We have tried using the sample script on the document('configure message content') but it seems it isn't working. Is there any settings we could change to make it work, such as creating a new Messaging Action or adding some script?

Here are the messaging content we set and the outbound/inbound message log.

Thank you in advance.

3 REPLIES 3

Naveen20
ServiceNow Employee
ServiceNow Employee

I think you should compare as below in the script

actions[0].value == "Approve"

Mary T
Mega Expert

Did you get this working? For me, out of the box the approval was working but not the Rejection.  The root cause was a customization made that rejections are not accepted unless a comment is submitted.  I got this working by updated the Messaging content and passing a general comment - next step is figuring out how to get the real user comment.

Hello Mary,

Even i am trying to pass the comments from slack to snow and get those added to the comments sections. Were you able to resolve it.

 

Thanks

Sri