Provider Notification
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2025 08:05 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2025 09:26 PM - edited 05-28-2025 12:28 AM
@bgulshan
Using the advanced condition and scripting to check if requested_for user is a part of approval group
answer = true;
//current contains the current record from the table to which the notification is linked
var approvalGrpId = current.document_id.assignment_group; //get the corresponding approval group ID here
var requestedForId = current.document_id.requested_for;
if(requestedForId && approvalGrpId && current.state == "not_requested"){
var grMember = new GlideRecord("sys_user_grmember");
grMember.addQuery("user", requestedForId);
grMember.addQuery("group", approvalGrpId);
grMember.query();
if(grMember.next()){
answer = false;
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2025 11:53 PM
@phgdet ,
Thank you for the solution tried it. It is not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2025 05:14 AM
Any update?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2025 12:51 AM
notification is on which table?
please share the complete screenshot
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