Visible attachment
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-11-2022 03:20 AM
Hello All,
I have requirement that attachment for one particular catalog Item for eg. xyz if someone attach the attachment at task level for the item 'xyz' then only it should vissible to assignment group 'abc' and if the logged in user belong to company "DEF'.
How we can acheive this and it should work only for the catalog item 'XYZ' should not impact anywhere else.
Is this possible
Thanks and Regards,
Nisha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-11-2022 07:04 AM
You can write a ACL on attachment table to hide it based on RITM fields.
There is also another not so popular and not suggestable method that is to have a client script where you will have to modify element html.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-14-2022 01:16 AM
Hello Ravindranath,
Can you please help with this how we can implement as I want to hide attachment on catalog task. Based on user company
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-14-2022 06:05 AM
Navigate to sys_attachment.LIST and create a READ ACL by going into table configuration page.
In script field, use the below script:
if(current.table_name == 'sc_task'){
var grUser = new GlideRecord('sys_user');
grUser.get(gs.getUserID());
if(grUser.company == '<user your compnay or add required conditions>'){
answer = true
} else {
answer = false;
}
} else {
answer = true;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-15-2022 04:52 AM
Did this work as expected?