Notifications

17 views

Description

User criteria stopped working after applying the patch 9 to the Madrid release.

Release or Environment

Madrid Patch 9

Cause

The script in the user criteria appears to return a true value; however, the pre-defined 'answer' variable should be used to pass out a result.

Resolution

To resolve the issue change the user criteria example script from:

 

var gr = new GlideRecord('sys_user');
gr.query('manager', user_id);
gr.addActive();
gr.next();

 

to:

 

var gr = new GlideRecord('sys_user');
gr.addQuery('manager', user_id);
gr.addActiveQuery();
gr.query();
answer = gr.next();

 


After changing the user criteria script, please be sure to clear the instance cache by using cache.do in the navigator.

Article Information

Last Updated:2020-01-24 06:22:24
Published:2020-01-24