07-27-2021 11:59 PM
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?
Solved! Go to Solution.
07-28-2021 07:24 AM - edited 07-28-2021 07:24 AM
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)
07-28-2021 04:55 AM
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.
07-28-2021 04:59 AM
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
07-28-2021 06:02 AM
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.
07-28-2021 07:24 AM - edited 07-28-2021 07:24 AM
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)
07-28-2021 07:29 AM - edited 07-28-2021 12:29 PM
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
07-30-2021 01:03 AM
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.
07-30-2021 02:13 AM
That’s exactly what I also thought about.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide