How to restrict attached documents

Dasari Srihari
Tera Contributor

We have created new catalog item, for that one we are triggering approvals, in that approver record we have some attachments, how to restrict those attachments to assessable or  visible to only for approver

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@Dasari Srihari 

you can handle this using 2 ways

1) sys_attachment READ ACL and in condition use table = sysapproval_approver, give the condition and role to whom you want to show

OR

2) use onLoad client script on sysapproval_approver and use either display BR or GlideAjax and based on that show/hide the attachment header bar

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hi @Ankur Bawiskar ,

 

Thanks for your response,

 

Do you have any sample script?

@Dasari Srihari 

it should be an easy one.

Unless you start you won't be able to learn

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader