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

UCCX - count times in specific branch

balmain99
Level 1
Level 1

Hello,

how could one count the number of times that you have gone through a specific branch, considering that (interger , say) variables reset with each new call  ?

Thanks,

BT

5 Replies 5

Deepak Rawat
Cisco Employee
Cisco Employee

Hi BT,

Simply create a variable (type Integer) and increment the value of it every time using Increment step call comes back in that particular branch of the script.

Sample script attached

Regards

Deepak

- Rate Helpful Posts -

Hello Deepak,

Thanks for your message.

Wouldn't this integer reset to 0 (or its initial value) every time a new call comes in ? 

That is what I discovered after doing some testing.

Thanks,

BB

Yes this thing will be valid for a particular call. Are you trying to keep the value from one call to other. For example the value of an integer is 3 for Call # 3 then you want that it should increment to 4 for Call # 4

If this is what you are looking for then it is not possible.

Regards

Deepak

- Rate Helpful Posts -

Yes this is what I was looking for, to keep the value for the next call.

Thanks again,

BB

Adding to my previous comment, though you have the Set Session Info and Get Session Info steps through which you can pass the information from one session to other but not sure how exactly that will fit in your scenario as you will need to keep on passing the values back and forth quite dynamically for the increment to keep happening. You can still take a look at the below video and see if that helps:

https://www.youtube.com/watch?v=9HXivETA8bE

Also take a look at the Scripting Guides available at the below link for better understanding of this step and the others available in Script Editor

http://www.cisco.com/c/en/us/support/customer-collaboration/unified-contact-center-express/products-programming-reference-guides-list.html

Regards

Deepak

- Rate Helpful Posts -