UCCX Simple Holiday Script

UCCX Simple Holiday Script

When creating a script in UCCX,  we need to ensure that the holiday prompts are played when there are some national holidays in the country/state. For example – Christmas, New Year, Independence day including some festivals celebrated in the country/state.

The below script is the simplest way to create a holiday script but however the recommended way is to use XML when creating holiday script.

UCCX Holiday Script:

Start > Accept the call > Check today’s date > If today’s date is matching with the holiday dates in a given list then play holiday prompt else route the call to the Queue.

If you don’t have prompts, you can create prompts from the link here : Text To Speech Free

Below is the screenshot of the script.

uccx-simple-holiday-script

To download the script, click here

Hope this helps!

6 thoughts on “UCCX Simple Holiday Script”

  1. This is exactly how I’ve always done holidays, however I recommend setting your dates as variables/parameters that can be edited from the application page on the web interface so that you don’t have to edit scripts every time you need to change holidays. Also, you can set the d[now] as the value in parameters and don’t have to use the set command in the script to set it. It just makes the script a little bit cleaner and easier to read.

      1. I think what I don’t like about the Xpath XML route is that it adds another document to have to reference. And then if you have multiple applications that close on different holidays, you have to have multiple holidays documents to maintain. Beyond that, when using this method your script only checks one line of the document at a time, so it has to loop many times as it pulls and sets the parameter in the script and checks against it, then if it doesn’t match, it has to loop back around and try again. With the method you showed here on this page, it only has to check one time, it gets all possibilities, and you can add them as parameters on the application page so that they can easily be edited through the GUI rather than having to open external files and then re-upload them each time.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top