watch list users should be able to update the comments in incidents and RITM's irrespective of roles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5 hours ago
watch list users should be able to update the comments in incidents and RITM's irrespective of roles. I have tried
in PDI by writing new ACL. But it is not working. Could you please help me how to write ACL. Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5 hours ago
Hi @vallusri
Try this one..you need to create total 4 ACL.
- Create a Write ACL (Table level ACL) on the specific table without specifying a field
- Operation: write
- Name: incident and sc_req_item ( 2 write ACL , you will create)
- Condition: None //you mention your condition
- Requires Role: snc_internal
- Create a Write ACL (Field level) for the Additional comments field
- Operation: write
- Name: incident.comments and sc_req_item.comments ( 2 write ACL , you will create)
- Script:
answer = checkWatchList();
function checkWatchList() {
if (current.watch_list.indexOf(gs.getUserID()) > -1)
{
return true;
}
return false;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5 hours ago
Hi @vallusri
In ACL,
Type : record
operation : write
table :incident
field :Additional comments
Check the Advanced box.
In the Script field,
if (current.watch_list.indexOf(gs.getUserID()) > -1 || current.caller_id == gs.getUserID() || current.opened_by == gs.getUserID()) {
answer = true;
} else {
answer = false;
}
For RITM,
Replace the table name with : sc_req_item
if (current.watch_list.indexOf(gs.getUserID()) > -1 || current.requested_for == gs.getUserID() || current.opened_by == gs.getUserID()) {
answer = true;
} else {
answer = false;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
you didn't share ACL screenshots you created
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader