cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
488
Views
0
Helpful
1
Replies

UCCX script updates XML file

joe.bennett
Level 3
Level 3

Hi,

I'm trying to modify the emergency script from the repository to handle multiple queues. The final XML file looks like;

<?xml version="1.0" encoding="ISO-8859-1"?>
<Closed>
    <Q4200>false</Q4200>
    <Q4201>false</Q4201>
    <Q4202>false</Q4202>
    <Q4203>false</Q4203>
    <Q4205>false</Q4205>
    <Q4206>false</Q4206>
    <Q4207>false</Q4207>
    <Q4210>false</Q4210>
    <Q7946>true</Q7946>
</Closed>

Where the number is the queue pilot. Reading is fine and the queues open and close as planned, but how do I update one queue status on its own? If I use a single variable in the template then all queues will change at the same time, but otherwise I need to create a step for each queue rather than build a single step with variables. Any ideas?

Regards,

Joe

1 Reply 1

Anthony Holloway
Cisco Employee
Cisco Employee

Have you thought about different files for each queue?

You don't even need XML.

E.g.,

default/

  queuestatuses/

    q4200.status.txt

    q4201.status.txt

    ...

Your plain text files can simply hold the word true or false.  Make sure you type cast this string returned into a boolean too.

In your script, point to the file like this: doc[csq_name + ".status.xml"]