-
I added a GlideList field called Groups (u_groups) at the template form.
- Added the following to ACL sys_template read:
u_groups is not empty
- Change the answer in Business Rule SNC Template Query like this
var arr_groups = getMyGroups().toArray();
var str_groups = '';
for (var i = 0; i < arr_groups.length; i++) {
if (i == 0) {
str_groups += 'u_groupsLIKE' + arr_groups[i];
} else {
str_groups += '^ORu_groupsLIKE' + arr_groups[i];
}
}
current.addEncodedQuery('^NQ' + str_groups);