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 incident records for users except assignment group members

lars7
Tera Guru

Hi

I want to hide records where a checkbox is set to true for all users unless they are member of the assigned assignment group

I want to do it with a business rule

1 ACCEPTED SOLUTION

lars7
Tera Guru

Solved the problem by making a before query BR. 

I simply made this script: current.addEncodedQuery("assignment_groupDYNAMICx^OR//FIELD//=false")

I did after doing a type of: 

Apparently using ^NQ in encoded query in a before query BR causes a bug when opening up incidents 

View solution in original post

10 REPLIES 10

ying zeng
Tera Contributor

Hi,

Did u find solutions?

I need creat BR also for cmdb table. tell me how did u figure out pls