The CreatorCon Call for Content is officially open! Get started here.

Reference Field in ACL Script

John Spirko
ServiceNow Employee
ServiceNow Employee

I have a custom reference field called Dept.   It's in the incident table as u_dept.   It references that user_group table.   I have 2 records that have data in that field.

incidentRecords.PNG

I'm trying to get the text vale from that field so I can use it in my ACL script.   I've tried to access it with all that is in the screenshot below but I can't seem to retrieve the value.

ACL_Script.PNG

Can anyone tell me how I can get the value of "Dept"(u_dept) into a string?

1 ACCEPTED SOLUTION

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hello John,



getDisplayBox only works at client side. At server side use current.u_dept.getDisplayValue();


View solution in original post

5 REPLIES 5

Thanks for the update John. Let me know if that answered your question. If so, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list. Thank you


How To Mark Answers Correct From Community Inbox