1. Attachment

nameisnani
Mega Sage

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,

4 REPLIES 4

Mark Manders
Mega Patron

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

Ravi Gaurav
Giga Sage
Giga Sage

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/

@Ravi Gaurav  Thanks for your response , could you please provide test example , like screenshots of configuration of incident table ? 

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