Notify user by using scripting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-16-2024 12:21 AM
Send a notification to the user whenever the category is hardware by using the Async business rule
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-17-2024 08:23 AM
Hi @Payal Tripathy ,
Create Event from Event Registry and select the table on which you want to create notification.
Create Notification and in when to run section select Event is fired and select your created event.
Create business rule and select type as Async and select condition as Category is hardware.
Select Advanced checkbox and then in the script part write code like below.
gs.eventQueue('event_name',current,current.number,gs.getUserName());
Please refer the below link as well.
https://www.servicenow.com/community/developer-forum/gs-eventqueue/m-p/1529243
Please mark my answer as helpful and correct if it resolves your issue.
Regards,
Namrata