Browse By

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.


To download the script, click here

Hope this helps!

Published by Team UC Collabing

6 thoughts on “UCCX Simple Holiday Script”

  1. Jaron says:

    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. Jaron says:

      One thing additionally, here is a better Text-to-Speech that sounds much less robotic:

      1. Avinash Karnani
        Avinash Karnani says:

        Thank you for sharing the link. It will help people reading the blog.

    2. Avinash Karnani
      Avinash Karnani says:

      I agree with you, this is what i wrote almost 6+ years back but i got a better solution for this using Xpath (XML). This is eliminate Admins touching the Application Page + Script. They can just modify the XML script and done.

      In case if you are interested:

      1. Jaron says:

        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.

  2. KingRikard says:

    Tomorrow, post a XML lookup version of the holiday script.

Leave a Reply

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