Document upload to hr case that only himself and admin can see
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2023 12:39 PM
I have a requirement that create a HR case for users can upload documents that more than once.
The users only can see their own uploaded documents not others. Admin can see all documents.
How can I do that?
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2023 12:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2023 06:27 AM - edited 11-07-2023 06:37 AM
Hi Sandeep,
I tried the same thing, but the type of Created By in attachment table is String. So there is no data match to the condition. I updated to javascript:gs.getUserName(). It shows match now.
When I impersonate as another person. He still can see my uploaded attachment in HR workspace.
Do you have any idea?
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2023 06:46 AM
@Elvis7 My bad, could you please filter condition as Created by is javascript: gs.getUserName();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2023 06:50 AM
@Sandeep Rajput Yes, I updated to getUserName. It shows matched data now.
However, it didn't hide the attachment for others.