Skip to content

Send Custom Slack Message When VIP Logs an Incident#2051

Closed
chetnadev wants to merge 2 commits intoServiceNowDevProgram:mainfrom
chetnadev:hacktoc
Closed

Send Custom Slack Message When VIP Logs an Incident#2051
chetnadev wants to merge 2 commits intoServiceNowDevProgram:mainfrom
chetnadev:hacktoc

Conversation

@chetnadev
Copy link
Contributor

When a VIP user creates an incident, notify a Slack channel (or send via webhook) with a custom JSON message.
Note : You’d need to set up a Slack Incoming Webhook for this.

This business rule triggers on incident creation and checks if the caller has the vips flag set to true. If so, it constructs a JSON payload with incident details and sends a POST request to a predefined Slack webhook URL using sn_ws.RESTMessageV2. The purpose is to notify support teams in real time when a VIP user logs an incident.

@rohi-v rohi-v self-assigned this Oct 12, 2025
@rohi-v
Copy link
Contributor

rohi-v commented Oct 12, 2025

Hi @chetnadev

Thank You for your contribution

The REST message call using sn_ws.RESTMessageV2 is a standard approach already available within the platform, so this doesn’t add much as a unique use case.

Additionally, there’s no error handling implemented for the REST call (for example, handling failed responses or exceptions).

Code snippets reused from the ServiceNow Documentation or API References are acceptable only if they are expanded in a meaningful way (e.g., with additional context, documentation, or variations). Remember: "QUANTITY IS FUN, QUALITY IS KEY."

@rohi-v rohi-v closed this Oct 12, 2025
@chetnadev chetnadev deleted the hacktoc branch October 12, 2025 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants