cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
620
Views
5
Helpful
6
Replies

how to add a "global" counter in uccx?

mnkojima
Level 1
Level 1

Hi

my customer has UCCX 8.5 Enhanced and he cannot afford an upgrade to Premium.

They need to know how many times an option has been pressed by the users along the time. That option has only a "play prompt" step.

I thought about using an XML file and, every time that option was pressed, I would increment the variable inside it.

The problem is that, inside the script, I cannot increment the string extracted from the xml file. That is only valid for integers.

Does anyone have an idea about how to get it?

Thank you

 

Marcos

1 Accepted Solution

Accepted Solutions

You would run into issues using an xml document within uccx is having multiple updates as you have overlapping contacts.  

 

From what I have seen while testing at run time the xml document is loaded into memory for that script.  Let's say the value is 1. If the script is executed again before the other one has completed it will also read the value as 1.  The first script has completed and updates the document to a value of 3.  The second script is not aware that the value was updated to 3 and will rewrite the value based on the starting point of 1 which will result in the data being lost.

 

What you might be able to do is use the Create URL Document step to Post data to another server and have it do all of the calculations on the back end. 

 

DJ

View solution in original post

6 Replies 6

djlundberg
Level 5
Level 5

Hi Marcos-

 

Do you need to know that on a call by call basis or as a whole? For example a caller pressed 3 five times or all calls pressed 3 5000 times combined.

 

If it's a call by call you could just right it to one of the Custom Call Variables with a Set Enterprise Data step.

DJ 

Hi DJ

I need that as a whole: the total times option 3 was pressed since the script started.

The best option would be working with a database, but my customer cannot afford an upgrade to premium licenses.

Thank you for your reply

Marcos

You would run into issues using an xml document within uccx is having multiple updates as you have overlapping contacts.  

 

From what I have seen while testing at run time the xml document is loaded into memory for that script.  Let's say the value is 1. If the script is executed again before the other one has completed it will also read the value as 1.  The first script has completed and updates the document to a value of 3.  The second script is not aware that the value was updated to 3 and will rewrite the value based on the starting point of 1 which will result in the data being lost.

 

What you might be able to do is use the Create URL Document step to Post data to another server and have it do all of the calculations on the back end. 

 

DJ

Thank you DJ

Hi,

I would definitely consider building a server next to UCCX and just fire off a simple call (anything would do, HTTP is easiest) and let the external server do the counting.

G.

Thank you Gergely