The Now Platform® Washington DC release is live. Watch now!
12-09-2016 02:44 AM
Based on the official wiki page, a User Criteria record may contain a specific set of users, groups, roles, departments ....
My question is, do I have to do manual checking for the user against user criteria, something like:
Or is there something out of the box in snow that carries out these checks for me? I guess there should be some way but I can't find any thing relevant in the official wiki or docs
Solved! Go to Solution.
12-09-2016 05:50 AM
One of my colleagues passed this along a few weeks ago. It's worth a try.
SNC.UserCriteriaLoader.getAllUserCriteria()
Returns an array of sys_ids of the user criteria available to you. (applies to user's current login session.)
12-09-2016 05:50 AM
One of my colleagues passed this along a few weeks ago. It's worth a try.
SNC.UserCriteriaLoader.getAllUserCriteria()
Returns an array of sys_ids of the user criteria available to you. (applies to user's current login session.)
12-09-2016 06:21 AM
thanks chuck, it works as expected
05-12-2020 03:48 AM
Hi Chuck,
Based on the question, this API works but we are evaluating all the UCs, whereas we only want to evaluate only 1.
So I feel we are unnecessarily evaluating all UC, so if I want to use this script in run-time it may take quite some time. Whereas we want only 1 UC to be evaluated.
Regards,
Swarnadeep Nandy
04-28-2022 03:24 AM
Hi Swarnadeep,
Did you find any solution on this?