Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

UCCX script updates XML file

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

Re: UCCX script updates XML file

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"]

Anthony Holloway

Please use the star ratings to help drive great content to the top of searches.
273
Views
0
Helpful
1
Replies
CreatePlease login to create content