
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-04-2019 01:34 AM
I'm working on a Slack integration where the person who submitted the request is notified when comments are added to a task. (Comments on the Task are "bubbled" up to the RITM and REQ)
Since I don't want send a Slack notification for every comment added, I was thinking about checking to see if the requestor is already logged in; of which I will not send a Slack notification.
I've tried impersonation of the requestor in Dev to to check if to see if my methods are correct in detecting if the user is logged in, but it only generates a session under the my account.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-07-2019 11:38 PM
John Heal, thanks for chiming in.
Since I created a business rule that triggers when a comment is added, I needed to know if the "requestor" was logged in, when the "assigned_to" person added a task comment. So using isLoggedIn() would not help if needed to know if the "requestor" was logged into ServiceNow, when the business rule was running under the context of the assigned_to.
I ended up checking if the requestor had a valid session. Seems to work; haven't gotten any complaints about users receiving too many Slack notifications.
- 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!!