cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
871
Views
0
Helpful
5
Replies

Dynamic PQ Custom Function

chad_meyer
Level 1
Level 1

Hey everyone, I am trying to create a custom function that will ultimately announce the number of callers in a particular queue.  We have 39 different queues with a naming convention of "Queue1, queue 2..."  where the numerical value is the only difference in queue names.  As opposed of creating 39 different if checks I was exploring the use of custom functions, and am getting mixed reviews on whether it is possible to do via custom function.  We are running v10.5 currently.  Ultimately I would like something like:

 

if PV2 = Queue%1%, set PV8 = Queue%1%,CallsInQ+1

 

Any assistance would be greatly appreciated. 

 

Thanks.

1 Accepted Solution

Accepted Solutions

david.macias
VIP Alumni
VIP Alumni

Not possible, unfortunately you can't generate the name of an object on the fly. Maybe just one big custom function with all the PQs in it and use a index to get the right number. This idea is untested and really I've not considered much beyond these few seconds, but it could work in theory.

 

david

View solution in original post

5 Replies 5

david.macias
VIP Alumni
VIP Alumni

Not possible, unfortunately you can't generate the name of an object on the fly. Maybe just one big custom function with all the PQs in it and use a index to get the right number. This idea is untested and really I've not considered much beyond these few seconds, but it could work in theory.

 

david

Thanks David.  We are upgrading to 11.5 in a few months.  I assume that functionality was not added in that version either?

Chad,

Reach out to me offline... I have a solution that could possibly work.

You tease! Care to share this with a wider audience? This type of request comes up often for me.

 

david

Hey David... I'll work with Chad offline and if our solution works, I'll definitely share with you. Your website has helped me a lot over the years... it's only fair :)