Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

hide attachment

Jyoti Tripathi
Giga Guru

How to hide attachment icon from portal when the case is close, i have created read ACL on sys_attachment table but it is not working

JyotiTripathi_0-1710768775155.png

answer = getAttachmentWriteAnswer();
function getAttachmentWriteAnswer() {
var parentRecord = new GlideRecord('hr_case');
parentRecord.query();
if (parentRecord.next()) {
var status = parentRecord.getValue('state');
if (status != 3) {
return true;
} else return false;
}
}
0 REPLIES 0