Is there a URS function which allows to find th agent groups with employee_id ?
I used BD Data block in composer but it seems its not best practice.
SELECT “dbo”.“cfg_group”.“name”, “dbo”.“cfg_person”.“user_name”
FROM
“dbo”.“cfg_group”, “dbo”.“cfg_person”, “dbo”.“cfg_agent_group”
WHERE
“dbo”.“cfg_person”.“employee_id” = {vEmployeeID} AND “dbo”.“cfg_agent_group”.“agent_dbid” = dbo.cfg_person.dbid AND “dbo”.“cfg_agent_group”.“group_dbid” = dbo.cfg_group.dbid AND “dbo”.“cfg_group”.“name” NOT LIKE ‘Entite%’ AND “dbo”.“cfg_group”.“name” NOT LIKE ‘Stats%’ AND “dbo”.“cfg_group”.“name” NOT LIKE ‘%G%’
ORDER BY “dbo”.“cfg_group”.“name” ASC