- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2025 01:37 AM
Hi I have a requirement to send a notification if the item changes to closed complete and a variable condition is met.
I have written this
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2025 02:04 AM
why not directly send it from notification filter condition?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2025 01:53 AM
Hi , Can you describe your issue in detail
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2025 01:59 AM
Hello @AbidJafrey ,
You need to create one business rule on the "sc_req_item" table and follow the below script.
var rec = new GlideRecord("sc_req_item");
rec.addQuery("sys_id", curren.sys_id);
rec.addEncodedQuery("state=3");
rec.query();
if (rec.next()) {
if (a == "Afstemning@dsb.dk") {
gs.eventQueue('hr.Byttepenge.jeg.har.miset.mine', current, a);
}
}
Please mark my answer as accepted solution and give thumbs up, if it helps you.
Regards,
Abhishek Thakur
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2025 02:37 AM
Hi,
You can directly configure a notification through the notification module. Make sure that you are giving the conditions correctly. E.g.: Stage/State changes to closed complete and select show variables > your variable details.
Regards,
Bhavani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2025 02:04 AM
why not directly send it from notification filter condition?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader