cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1503
Views
5
Helpful
8
Replies

Use a script to Activate/Deactivate Variables in another Script

shiblyibrahim
Level 3
Level 3

UCCX Issue

 

Hey,

Hope someone can assist me here. Thank you in Advance.

 

So I have a script which I wrote, that i have set certain variables to be active or inactive based on value 0= Deactivated or 1 = Activated. For example, call hits the application, Divert is set to 1 so it will have to divert the call to the number mentioned.

 

So these values have to be changed on the applications page as usual.

 

I am looking to see if i can use another script and in that script to be able to change the values on the main script on the phone. Like turning on and turning of prompts .

Please rate the post Shibly Ibrahim
8 Replies 8

geoff
Level 10
Level 10

This must be a UCCX question. In UCCE, Admin scripts and global (user) variables allow this to be easily done.

 

You should note in your question whether it's about Express or Enterprise.

 

Regards,

Geoff

Hi Geoff 

Thank you. Yes this is a UCCX question. I have amended the post now.

 

is this achievable in UCCX

Please rate the post Shibly Ibrahim

Check out Cisco Unified Contact Center Express Script Repository 9.0(2) for emergency script examples as they employ the similar logic to what you are asking to do.

Thanks Chris, checking it out now.

Please rate the post Shibly Ibrahim

Kristopher Tan
Level 1
Level 1

Something to consider, you can have a script edit an xml file you have in your document repository. Similarly, you can have a script read an xml file from that same repository, so in essence you can pass variable information between any number of scripts at any time without having to run them as a sub script.

Thanks Kristopher.

So XML is the only way to go is it. We cant call the other application and make the changes to the variables?

 

Do you know where i can find a simple script so i can understand.

Please rate the post Shibly Ibrahim

So, lets say you have an xml file called holidays.xml

<?xml version="1.0" encoding="ISO-8859-1"?>

<Holidays>
  <Holiday1>

    <date>12/23/2017</date>

    <open>00:08:00 AM</open>

    <closed>00:05:00 PM</closed>

    <xmas>true</xmas>

  </Holiday1>

</Holidays>

 

Reading the xml is in the attached pic.

 

Hey Kristopher,

Thank you so much. I am going to try it out now. Will come back and rate :)

Please rate the post Shibly Ibrahim