Eric B
08/05/2022, 5:36 PMChris Simon
08/05/2022, 6:02 PMdcrsmith
08/05/2022, 9:10 PMdcrsmith
08/05/2022, 9:12 PMif(/entitygroup/i.test(type)
&& runtime.getCurrentUser().getPermission({name:'LIST_CRMGROUP'})
) {
// LIST_CRMGROUP - does the user have permission to view/list the entity groups
let grps = getEntityGroups();
log.audit('GROUPS',grps);
return grps;
}
dcrsmith
08/05/2022, 9:17 PMlet sql = `SELECT
ID AS id,
groupname as fullname,
concat(concat(grouptypename,' '),concat(groupmembership,' Group')) as title,
email,
'entitygroup' as type,
grouptypename as grouptype
FROM
EntityGroup
WHERE
AND NVL(isprivate, 'F') = 'F'
AND NVL(isinactive, 'F') = 'F'
AND restrictiongroup IS NULL
`