Genesys CTI User Forum > Genesys-related Development

required code for retrieving a particular agent access group using SDK.

(1/2) > >>

Naveen Kancharla:
I am working on web application using .net sdk want to check agents access group, need a brief idea how to retrieve.kindly suggest.

PeteHoyle:
Use the COM Application Block, there are lots of examples on how to set that up.

Then you can use the query

                [code]CfgAccessGroupQuery query = new CfgAccessGroupQuery();
                query.Name = "Administrators";
                query.TenantDbid = 1;
                ICollection<CfgAccessGroup> accessGroups = confService.RetrieveMultipleObjects<CfgAccessGroup>(query);
                foreach (CfgAccessGroup accessGroup in accessGroups)
                {
                    log.Debug(accessGroup);
                }[/code]

Or is you want to find out the AccessGroups a person belongs to you can use this query:

[code]                CfgAccessGroupQuery query = new CfgAccessGroupQuery();
                query.PersonDbid = 748;
                query.TenantDbid = 1;
                ICollection<CfgAccessGroup> accessGroups = confService.RetrieveMultipleObjects<CfgAccessGroup>(query);
                foreach (CfgAccessGroup accessGroup in accessGroups)
                {
                    log.Debug(accessGroup);
                }[/code]

Sudherson Nadar:
I am also having the same issue!!!
not solved yet.
Required code for retrieving a particular agent access group using SDK.

Kubig:
And what is the exactly problem? If you take a look at post from Peter Hoyle, there you can find the code how to retrieve the agent's access group/s.

Naveen Kancharla:
thanx PeteHoyle it help me alot, but i need little more help.
While execute the code it shows list of all user having access to mentioned access group.if suppose i want a particular user from the list what will be the code for it.

Navigation

[0] Message Index

[#] Next page

Go to full version