We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

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