
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2018 03:44 AM
Hi,
I have set up an integration between Service Now and Slack for sending notifications to slack whenever there is a request created in Service Now, i'm successful in sending the notifications, but can't decorate the notifications message using HTML tags, for example in the below 'text' i would like to make the 'Short description', 'Product Name' and 'Inquiry Type' as a bold texts and many other things.
Passing <b> </b> is not helping.
Any idea pls?
Script part:
var slack = new SlackMessageCC();
slack.payload.text = 'A new request has been assigned to ' + current.assignment_group.name + '. Please follow the link for more information.';
slack.payload.icon_emoji = ':exclamation:';
slack.payload.attachments.push({
'title': current.number.toString(),
'title_link': 'https://' + gs.getProperty('instance_name') + '.service-now.com/nav_to.do?uri=sc_request.do?sys_id=' + current.sys_id,
'text':"<b>Short Description : <\/b>"+current.short_description.toString()+"\nProduct Type : "+current.u_product_name+" Inquiry Type : "+current.u_inquiry_type+" Location : "+current.location.name
});
slack.send();
Current Output what i'm getting is
Thanks
Yogesh Dafedar
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2018 04:11 PM
This should work
'text':"*Short Description* : "+current.short_description.toString()+"\n*Product Type* : "+current.u_product_name+" *Inquiry Type* : "+current.u_inquiry_type+" *Location* : "+current.location.name
Below are few slack tips
22 Handy Slack Hacks Everyone Should Know
Please mark this response as correct or helpful if it assisted you with your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2018 11:11 PM
Thank you so much Chuck, i agree, i forgot to do that.
Thanks
Yogish Dafear

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2018 04:11 PM
This should work
'text':"*Short Description* : "+current.short_description.toString()+"\n*Product Type* : "+current.u_product_name+" *Inquiry Type* : "+current.u_inquiry_type+" *Location* : "+current.location.name
Below are few slack tips
22 Handy Slack Hacks Everyone Should Know
Please mark this response as correct or helpful if it assisted you with your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2018 08:28 AM
Thanks Saniv, that worked
Regards
Yogesh Dafedar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2020 05:56 AM
Watch this video for Slack integration steps by step configuration. Post message on slack channel via flow designer.
https://www.youtube.com/watch?v=YEGLJLubCCY&t=1s&ab_channel=ServiceNowHelpdesk
Please mark reply as Helpful/Correct, if applicable. Thanks!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2025 02:32 AM
Hi , I need help here. I'm trying to post message to slack in tabular format. The input is of type HTML and inserted table data. But the message is getting posted as html tags in slack. Can you please help here?