Need help in Business Rule
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2025 11:19 PM
Hi Team ,
can any one please help me on this request?
Incidents which are assigned to CFS-CFSEdge-SUP limit view to the Opened By and the Caller and CFS-CFSEdge-SUP grp members
I have configured :- Before - query
condition - !gs.getUser().isMemberOf('CFS-CFSEdge-SUP')
(function executeRule(current, previous /*null when async*/ ) {
if (!gs.getUser().isMemberOf('CFS-CFSEdge-SUP')) {
// Check if the incident assignment group is not CFS-CFSEdge-SUP
var grpCondition = current.addNullQuery('assignment_group').addOrCondition('assignment_group', '!=', '6b9033d187c72550141931140cbb35e1');
// Check if the business service is not CFS Edge Production
// SNC Debug - start
//current.addQuery('business_service', '!=', 'CFS Edge Production');
current.addNullQuery('business_service').addOrCondition('business_service', '!=', 'CFS Edge Production');
// SNC Debug - end
}
//gs.addInfoMessage(current.getEncodedQuery());
})(current, previous);
If any end user - raising incident from the portal ,
coming below error ,
can anyone please modify my script . so that end user can see their incident ,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2025 12:10 AM
OOB incident query BR shows incidents if you are caller or present in watch list of opened by user
Simply add the extra check in table level READ ACL and the OOB query BR
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 12:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2025 12:44 AM
so if incident is assigned to CFS-CFSEdge-SUP then it has to be shown to Opened By, Caller and group members?
What if incident is not assigned to that group?
can you explain your business requirement here?
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:10 AM
What if incident is not assigned to that group?
can you explain your business requirement here?
- yes if incident assigned to anyothet grp it should visible for everyone
- so if incident is assigned to CFS-CFSEdge-SUP then it has to be shown to Opened By, Caller and group members? Yes this is my requirement - could you please update my script