- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-16-2021 03:42 AM
if Incident is Assigned group is CapGemini then the CapGemini Group members can write or edit the incident. If anyone opens that ticket who is not a member of CapGemini Group then they can't edit that ticket.
How to Achieve this with ACL?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-16-2021 05:21 AM
Hi,
then you can use this logic and don't use ACL
Display BR: On incident table
g_scratchpad.isMember = gs.getUser().isMemberOf('CapGemini');
Client script: on incident table
function onLoad(){
if(g_scratchpad.isMember.toString() == 'false' && !g_form.isNewRecord()){
var fields = g_form.getEditableFields();
for (var x = 0; x < fields.length; x++) {
g_form.setReadOnly(fields[x], true);
}
}
}
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-16-2021 04:57 AM
Hi,
If you want all fields then use Table.* or Table.None
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-16-2021 05:14 AM
Yes sir, Actually I put incident.* in the ACL. But its showing as same in the previous Screes shot. so please give me solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-16-2021 05:21 AM
Hi,
then you can use this logic and don't use ACL
Display BR: On incident table
g_scratchpad.isMember = gs.getUser().isMemberOf('CapGemini');
Client script: on incident table
function onLoad(){
if(g_scratchpad.isMember.toString() == 'false' && !g_form.isNewRecord()){
var fields = g_form.getEditableFields();
for (var x = 0; x < fields.length; x++) {
g_form.setReadOnly(fields[x], true);
}
}
}
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader