cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

630
Views
20
Helpful
7
Replies
pescla
Beginner

UCCX - getting the name of the Holiday in the script?

Say i want to define Holidays for which i want e.g. a different prompt. Like, wishing the customer a happy new year if he is calling on a holiday that is named "New Years Eve". Is it possible to get the NAME of the holiday in the script? Since i define the name and the date in the calendar, and the script can read the dates of the calendar, i thought surely it could also be possible for it to get the names?

1 ACCEPTED SOLUTION

Accepted Solutions
Thomas G. Johannesen
Contributor

Hey.

 

It is not possible to get the name of the holiday. Sorry

Only if it is a holiday or not (We are alot of people who has ask for this feature so hopefully it comes soon)

-----------------------------------------------------------
Please rate all useful posts and mark as answer if it solves your issue

View solution in original post

7 REPLIES 7
Roger Kallberg
VIP Advisor

It would be of help if you where to share a little bit of information about your setup for holiday handling.

Do you use the newly built in feature that came in 12.x, or do you use the old style approach with an XML file, or are you using an altogether different approach with a 3:rd party application like for example CCtime?

With the later I know that you can get the name of the the defined holiday, for the XML file I’m quite sure it would also be possible, for the built in calendar option I have not ever used it myself, so I don’t have any first hand advice on this.



Response Signature


Hello, i am using the new builtin calendars. So far i made a workaround with using a second calendar that has the other holidays where a different prompt is needed, which works just fine since i only have two different types of holiday prompts now - as long as the customer doesnt want a unique prompt for every holiday, then i guess ill need a calendar for every single holiday - it would be awesome to have the ability to have the holiday name returned as a variable for the builtin calendar aswell

In that case I hope that someone else can lend you a hand with this as I’ve yet to look into the new calendar option in 12.x.

Best of luck with this.



Response Signature


Thomas G. Johannesen
Contributor

Hey.

 

It is not possible to get the name of the holiday. Sorry

Only if it is a holiday or not (We are alot of people who has ask for this feature so hopefully it comes soon)

-----------------------------------------------------------
Please rate all useful posts and mark as answer if it solves your issue

View solution in original post

Wouldn’t it be possible to use the get calendar call in the script and write a logic to check the current date and read the tag name in the resulting XML structure. This seems anyway as a possibility based on this DevNet document. https://pubhub.devnetcloud.com/media/contact-center-express/docs/downloads/previous-documentation/configuration-api-developer-guide/Cisco_Unified_Contact_Center_Express_Developer_Guide_Release_12.5(1).pdf#page50



Response Signature


Offcourse that is possible. 

 

I just assume that pescla meant the standard feature in the script.

 

One other way is to read the step thru the api 

https://<server>/adminapi/calendar/{id}

 

This wil give you something like this :

<?xml version="1.0" encoding="UTF-8"?>
<calendar>
  <self>https://uccx-server/adminapi/calendar/1</self>
  <calId>1</calId>
  <name>Calendar1</name>
  <timeZone>Asia/Kolkata</timeZone>
  <description>description</description>
  <calendarType>FLEXIBLEHOURS</calendarType>
  <businessDays>
    <businessDay>
      <dayOfWeek>SUN</dayOfWeek>
      <intervals>
         <interval>
          <name>MorningShift</name>
          <startTime>06:00</startTime>
          <endTime>13:00</endTime>
        </interval>
        <interval>
          <name>AfternoonShift</name>
          <startTime>14:00</startTime>
          <endTime>19:00</endTime>
        </interval>
      </intervals>
    </businessDay>
    <businessDay>
      <dayOfWeek>MON</dayOfWeek>
      <intervals>
         <interval>
          <name>Morning</name>
          <startTime>08:00</startTime>
          <endTime>15:33</endTime>
        </interval>
        <interval>
          <name>Evening</name>
          <startTime>17:22</startTime>
          <endTime>22:33</endTime>
        </interval>
      </intervals>
    </businessDay>
  </businessDays>
  <holidays>
    <holiday>
      <name>NewYear</name>
      <date>2019-01-01</date>
    </holiday>
    <holiday>
      <name>Christmas</name>
      <date>2019-12-25</date>
    </holiday>
  </holidays>
  <specialDays>
    <specialDay>
      <name>ChristmasEve</name>
      <date>2018-24-12</date>
      <intervals>
         <interval>
          <name>Extra</name>
          <startTime>01:22</startTime>
          <endTime>22:33</endTime>
        </interval>
      </intervals>
    </specialDay>
    <specialDay>
      <name>NewYearEVE</name>
      <date>2017-31-12</date>
      <intervals>
         <interval>
          <name>Special</name>
          <startTime>01:22</startTime>
          <endTime>23:33</endTime>
        </interval>
      </intervals>
    </specialDay>
  </specialDays>
</calendar>

So the script should something like.

 

Use the standard calendar step i uccx editor to check if the day is an holiday.

If it is an holiday, use the Get Rest Call step to get the info for the calendar og then run thru that to check for the name.

-----------------------------------------------------------
Please rate all useful posts and mark as answer if it solves your issue

That’s exactly what I also thought about.



Response Signature


Create
Recognize Your Peers
Content for Community-Ad