set acl for multiple catalog items
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-20-2023 12:21 AM
Hi,
I have a acl which I need for multiple catalog items but I don't want to use the hardcoded sys_id in condition.I have created a property with comma seperated sys_id of catalog items. How do I use in my script to apply the acl for only these catalog items?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-21-2023 11:18 PM
it should be "cat_item".
var items = gs.getProperty('<property name>'); //property should hold comma separated sys_id of catalog items
var itemList = items.toString().split(',');
if(itemList.indexOf(current.cat_item) > -1){
answer = true;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-22-2023 01:32 AM
@Alex Pandian1 Thanks but can current object be used in acl?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2023 05:08 AM
@Akki1 Yes
Bharath Chintala