Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

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