Notify user by using scripting

Payal Tripathy
Tera Contributor

Send a notification to the user whenever the category is hardware by using the Async business rule

1 REPLY 1

Namrata Ghorpad
Mega Sage
Mega Sage

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