" /> Request configuration Database - Genesys CTI User Forum

Author Topic: Request configuration Database  (Read 2657 times)

Offline Gaia

  • Jr. Member
  • **
  • Posts: 60
  • Karma: 0
Request configuration Database
« on: January 20, 2020, 05:28:45 PM »
Advertisement
Hi Genesys experts  :),

Is there a URS function which allows to find th agent groups with employee_id ?

I used [b]BD Data block[/b] 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

Thanks for help

Br,

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Request configuration Database
« Reply #1 on: January 20, 2020, 06:07:03 PM »
No because the AG is not a property of the Agent object...why would you like to do such thing?

Marked as best answer by Gaia on January 22, 2020, 07:45:41 AM

Offline terry

  • Sr. Member
  • ****
  • Posts: 328
  • Karma: 35
Re: Request configuration Database
« Reply #2 on: January 20, 2020, 08:55:48 PM »
You can try ExpandAgent[AgentEmployeeID] - supposed to return list of all groups agent is in.

Offline Gaia

  • Jr. Member
  • **
  • Posts: 60
  • Karma: 0
Re: Request configuration Database
« Reply #3 on: January 21, 2020, 09:09:35 AM »
Hi cavagnaro,

I need to Know the group the group of the agent who initiated consultation.

Gaia


[quote author=cavagnaro link=topic=11519.msg52432#msg52432 date=1579543623]
No because the AG is not a property of the Agent object...why would you like to do such thing?
[/quote]

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Request configuration Database
« Reply #4 on: January 21, 2020, 10:31:58 AM »
[quote author=terry link=topic=11519.msg52433#msg52433 date=1579553748]
You can try ExpandAgent[AgentEmployeeID] - supposed to return list of all groups agent is in.
[/quote]Even VAG? Interesting... From where do you get those functions Terry?

Enviado de meu SM-N9600 usando o Tapatalk


Offline Gaia

  • Jr. Member
  • **
  • Posts: 60
  • Karma: 0
Re: Request configuration Database
« Reply #5 on: January 21, 2020, 11:03:08 AM »
hi terry,

There is function expandGroup but I never heard of expandAgent ??

[quote author=terry link=topic=11519.msg52433#msg52433 date=1579553748]
You can try ExpandAgent[AgentEmployeeID] - supposed to return list of all groups agent is in.
[/quote]
Gaia

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Request configuration Database
« Reply #6 on: January 21, 2020, 11:04:12 AM »
It was previously posted in another thread... Yet can't find any info about it on Google lol
Terry is the book keeper


Enviado de meu SM-N9600 usando o Tapatalk


Offline Gaia

  • Jr. Member
  • **
  • Posts: 60
  • Karma: 0
Re: Request configuration Database
« Reply #7 on: January 21, 2020, 11:15:30 AM »
::) ::) ::) ::)

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: Request configuration Database
« Reply #8 on: January 21, 2020, 01:11:17 PM »
You can find all available IRD functions within compiler.dat file under IRD installation folder.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Request configuration Database
« Reply #9 on: January 21, 2020, 01:12:14 PM »
Woha... Nice!
But yet... Still amazed how Genesys can lack of documentation and you have to go like reverse engineering always


Enviado de meu SM-N9600 usando o Tapatalk


Offline Gaia

  • Jr. Member
  • **
  • Posts: 60
  • Karma: 0
Re: Request configuration Database
« Reply #10 on: January 21, 2020, 01:40:49 PM »
Thanks Kunig

I will try to call this function with URS Function in composer , hope this work

[quote author=Kubig link=topic=11519.msg52441#msg52441 date=1579612277]
You can find all available IRD functions within compiler.dat file under IRD installation folder.
[/quote]

Gaia

Offline Gaia

  • Jr. Member
  • **
  • Posts: 60
  • Karma: 0
Re: Request configuration Database
« Reply #11 on: January 21, 2020, 05:45:23 PM »
Thank you experts

The ExpandAgent function is working  :) ;D

<script><![CDATA[
App_URSFunction1['urs_url'] = 'urs/call/@' + system.InteractionID + '/func/ExpandAgent?params=[' + '"' + vEmployeeID + '"' + ']';
]]></script>



Gaia


Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Request configuration Database
« Reply #12 on: January 21, 2020, 05:49:06 PM »
Nice
Thanks for sharing
And what is the practical use of this? Why would you need the agents group belonging info?


Enviado de meu SM-N9600 usando o Tapatalk


Offline terry

  • Sr. Member
  • ****
  • Posts: 328
  • Karma: 35
Re: Request configuration Database
« Reply #13 on: January 21, 2020, 07:30:48 PM »
With more or less recent URSes the ExpandAgent should work for VAGs too (at least for VAGs with definitions using skills, without login function)