Genesys CTI User Forum

Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: Dorian-Grim on January 07, 2017, 11:53:56 AM

Title: group of queues name inside template formula
Post by: Dorian-Grim on January 07, 2017, 11:53:56 AM
Hi,

I would like to use the group of queues name inside a formula. For this example the prepaid_vqs...
See image
http://imgur.com/a/4AW5x

Thanks
Title: Re: group of queues name inside template formula
Post by: Kubig on January 09, 2017, 09:28:15 AM
And what's the problem..?
Title: Re: group of queues name inside template formula
Post by: Dorian-Grim on January 09, 2017, 09:29:52 AM
[quote author=Kubig link=topic=10065.msg45654#msg45654 date=1483954095]
And what's the problem..?
[/quote]

I don't know how Kubig...
Title: Re: group of queues name inside template formula
Post by: Dorian-Grim on January 11, 2017, 11:37:08 AM
I am coming to believe that it is not possible, since you can't use GetString inside a custom statistic, only number functions.

I so do not want to use filter for this one...

Anyone has any input on this?
Title: Re: group of queues name inside template formula
Post by: Tambo on January 11, 2017, 02:21:27 PM
where do you want to use this?
how do you want to use this?
why do you want to use this?
Title: Re: group of queues name inside template formula
Post by: Dorian-Grim on January 11, 2017, 02:27:16 PM
[quote author=Tambo link=topic=10065.msg45675#msg45675 date=1484144487]
where do you want to use this?
how do you want to use this?
why do you want to use this?
[/quote]

Where? inside a template, on a formula, in a variable preferably
How? return.Text = Object; // Object contains prepaid_vqs string
Why? I want to query sql with insert or update service level into Oracle using ADODB, directly with group of queues name associated
Title: Re: group of queues name inside template formula
Post by: Dorian-Grim on January 15, 2017, 11:00:15 AM
It seems impossible to achieve this, sadly...
Title: Re: group of queues name inside template formula
Post by: Tambo on January 16, 2017, 12:57:15 PM
so you're just talking about a normal group of queues then ??

if so create a new VQ called PrePaid_VQs  etc
go to Deafault DN's tab in that object and then add in all of the VQs that you would like to group together under that name (prepaid $5, prepaid $10 etc) this will then give you all of the stats bundled up into a group.
this you can then query, report on as you would 1 single VQ.

is that what you're looking for?
Title: Re: group of queues name inside template formula
Post by: szs5tim on January 16, 2017, 02:14:20 PM
You are over complicating it...
Group the VQs like Tambo suggested and your problem should be fixed  :)
Title: Re: group of queues name inside template formula
Post by: Dorian-Grim on January 16, 2017, 02:14:50 PM
[quote author=Tambo link=topic=10065.msg45701#msg45701 date=1484571435]
so you're just talking about a normal group of queues then ??

if so create a new VQ called PrePaid_VQs  etc
go to Deafault DN's tab in that object and then add in all of the VQs that you would like to group together under that name (prepaid $5, prepaid $10 etc) this will then give you all of the stats bundled up into a group.
this you can then query, report on as you would 1 single VQ.

is that what you're looking for?
[/quote]

I don't need the stats of the DNGroup, I need its name and use it inside jscript

[code]if (Object = "Prepaid_vqs") // etc......[/code]
Title: Re: group of queues name inside template formula
Post by: cavagnaro on January 16, 2017, 02:27:50 PM
Not possible

Enviado de meu E6633 usando Tapatalk

Title: Re: group of queues name inside template formula
Post by: Dorian-Grim on January 16, 2017, 02:29:42 PM
[quote author=cavagnaro link=topic=10065.msg45707#msg45707 date=1484576870]
Not possible

Enviado de meu E6633 usando Tapatalk
[/quote]

That's what I'm saying.
I had my hopes up high though...

This means that you can't use ANY available object type name inside jscript

:-\
Title: Re: group of queues name inside template formula
Post by: Dorian-Grim on January 27, 2017, 10:53:06 AM
[quote author=cavagnaro link=topic=10065.msg45707#msg45707 date=1484576870]
Not possible

Enviado de meu E6633 usando Tapatalk
[/quote]

Yes it is possible, using filters. I am applying filters to the DNGroups, to a certain statistic, for example total calls entered, and then I hardcode in jscript:

if (Total_Calls_Entered_1 > 1)
"prepaid_vq";
if (Total_Calls_Entered_2 > 1)
"private_vq";
...
etc.

Where Total_Calls_Entered_1 has a filter with PairExist("key","prepaid_vq"). Note that key is custom for each configuration, in my case it's k_requested_service, and prepaid_vq is the exact name of the DNGroup.

I don't like the way I got to this, cause hardcoding, programming wise, is against every best practice. Environments and platforms should make available the object names by default. At least platforms as big as freakin` genesys...

Title: Re: group of queues name inside template formula
Post by: Tambo on January 27, 2017, 11:05:37 AM
so you are using DNGroups then ??
Title: Re: group of queues name inside template formula
Post by: Dorian-Grim on January 27, 2017, 12:05:02 PM
[quote author=Tambo link=topic=10065.msg45768#msg45768 date=1485515137]
so you are using DNGroups then ??
[/quote]

Aren't DNGroups and group of queues basically the same thing? Adding my screenshot in this, there's not mistake, from my opinion.

Why the confusion?
Title: Re: group of queues name inside template formula
Post by: cavagnaro on January 27, 2017, 01:13:30 PM
Well two posts above you said you needed individually. You rejected the DN group idea...so...

Enviado de meu E6633 usando Tapatalk

Title: Re: group of queues name inside template formula
Post by: Dorian-Grim on January 27, 2017, 01:22:34 PM
[quote author=cavagnaro link=topic=10065.msg45773#msg45773 date=1485522810]
Well two posts above you said you needed individually. You rejected the DN group idea...so...

Enviado de meu E6633 usando Tapatalk
[/quote]

Looking at the screenshot, am I not already using DNGroups? Why would someone point me out to something I am already doing? It makes no sense.

Anyway, thanks very much for the help guys.
Title: Re: group of queues name inside template formula
Post by: Tambo on January 27, 2017, 04:01:41 PM

[/quote]

I don't need the stats of the DNGroup, I need its name and use it inside jscript

[code]if (Object = "Prepaid_vqs") // etc......[/code]
[/quote]

no confusion on my part
Title: Re: group of queues name inside template formula
Post by: Dorian-Grim on January 27, 2017, 04:09:24 PM
[quote author=Tambo link=topic=10065.msg45780#msg45780 date=1485532901]

[/quote]

I don't need the stats of the DNGroup, I need its name and use it inside jscript

[code]if (Object = "Prepaid_vqs") // etc......[/code]
[/quote]

no confusion on my part
[/quote]

Tambo, how can this serve my purpose when:

1. I am already doing what you said. (screenshot, right?)
2. the DNGroup stats, don't contain the DNGroup name

?

I believe this is getting nowhere.
Title: Re: group of queues name inside template formula
Post by: cavagnaro on January 27, 2017, 06:54:21 PM
The issue is that you can't get that value on CCPulse. That is why it is not possible to do what you ask for. Not because the DN type.
Title: Re: group of queues name inside template formula
Post by: Dorian-Grim on January 27, 2017, 08:53:13 PM
[quote author=cavagnaro link=topic=10065.msg45783#msg45783 date=1485543261]
The issue is that you can't get that value on CCPulse. That is why it is not possible to do what you ask for. Not because the DN type.
[/quote]

yes you can. i explained how a few posts back. it's similar to custom agent state.
Title: Re: group of queues name inside template formula
Post by: cavagnaro on January 27, 2017, 10:54:30 PM
[quote author=Dorian-Grim link=topic=10065.msg45784#msg45784 date=1485550393]
[quote author=cavagnaro link=topic=10065.msg45783#msg45783 date=1485543261]
The issue is that you can't get that value on CCPulse. That is why it is not possible to do what you ask for. Not because the DN type.
[/quote]

yes you can. i explained how a few posts back. it's similar to custom agent state.
[/quote]

Had to increase the "by using VBScript"...you can the way you did it, but as by using simple VBScript functions to get the DN name and Alias is not an option right now.

Your method does work and solves your issue, ugly in a developer eye but works fine on a user POV.

Cheers