1. Attachment
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2024 01:59 AM
Hi Team ,
can anyone please help me with this question?
Do you know if there is a way to attach files to incidents which the requestor/caller can't see? Like a "work note," but an attachment .
Please provide steps and screenshots for better understanding .
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2024 02:15 AM
I depends on how you want this to function. You can put ACL's or query business rules on the attachment table, but you need to understand that no attachments will be visible in that case. You could consider only their own attachments to be seen (created is dynamic me), but you will never be able to put an instruction as attachment on the incident.
Also: check your notifications that they don't send the attachments. But there is no OOB way to just say 'this attachment can be seen, this attachment can't be seen'.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2024 02:53 AM - edited 08-20-2024 02:54 AM
Hi @nameisnani
Just write an onload client script to read the user role and if the user doesn't have the appropriate roles then just
g_form.disableAttachments();
Ecx:-
function onLoad() {
if(g_user.hasRole('scrum_reader')) {
g_form.disableAttachments();
}
}
or..
use the below:-
gel('header_attachment').style.display='none';
If you found my response helpful, I would greatly appreciate it if you could mark it as "Accepted Solution" and "Helpful."
Your support not only benefits the community but also encourages me to continue assisting. Thank you so much!
Thanks and Regards
Ravi Gaurav | ServiceNow MVP 2025,2024 | ServiceNow Practice Lead | Solution Architect
CGI
M.Tech in Data Science & AI
YouTube: https://www.youtube.com/@learnservicenowwithravi
LinkedIn: https://www.linkedin.com/in/ravi-gaurav-a67542aa/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2024 03:09 AM
@Ravi Gaurav Thanks for your response , could you please provide test example , like screenshots of configuration of incident table ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2024 03:36 AM
This will hide the possibility to attach documents. Not to see them.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark