ACL Help: want to show record to user if current logged in user is in the watch_list field
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-11-2022 07:53 PM
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-11-2022 10:33 PM
Hi
write
answer = current.getValue('watch_list').include(gs.getUserID());
Kind regards
Maik
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-12-2022 12:29 AM
Spelling of watch list in your code is incorrect in first line of code. Create both Table and Field Level ACL on Security Incident Table and try the script below to see :
var getWatchList = current.watch_list;
if(getWatchList.indexOf(gs.getUserID())>-1){
answer = true;
}else{
answer = false;
}
Hope this helps. Please mark the answer as correct/helpful based on impact.
Regards,
Shloke
Hope this helps. Please mark the answer as correct/helpful based on impact.
Regards,
Shloke
Regards,
Shloke