12-20-2021 10:36 AM
CCX 12.5 customer wants to play day-specific prompts on specific holidays. For example, on 12/25 (year doesn't matter) callers would hear the Christmas.wav prompt, then on 7/4 callers would hear Independence.wav. The customer is already managing the holidays in the built-in Calendar Management, but I modified the script to use the old tried-and-true xml document method but I can't make it pull the right prompt. Is there is a way to have the built-in Calendar Management trigger a specific prompt to match the holiday or if not natively, I am open to ideas how to modify the script to check if, perhaps, the calendar returns a boolean of true if the day is a "holiday", then match the date, or a series of dates to play a particular prompt. Some years, Independence Day, for example, might not fall on the 4th, it could be on the 3rd or 5th, so I would want to be able to check for variable dates of the same holiday.
thank you
12-20-2021 10:47 AM
Hi,
But is not easier to use the Calendar Management?
12-20-2021 10:51 AM
Of course, if the requirement is simply doing a holiday check. Please understand the specific requirement here is not just holiday check, but then playing a specific prompt to match that holiday".
thank you
12-20-2021 12:42 PM
Can you put the name of the holiday(s) in the XML file and then read the name of the matching date to use that to play a prompt named the same as part of the name.
12-22-2021 06:10 AM - edited 12-22-2021 06:38 AM
Roger,
does this mean instead of tagging the dates as <Holiday>12/25/21</Holiday>, I would tag it as <Christmas>12/25/21</Christmas> and somehow pull that tag into the script as a string?
edit: or like this... ?
<?xml version="1.0" encoding="ISO-8859-1"?>
<HolidayList>
<Holiday>1/1/22</Holiday>
<HolidayPrompt>NewYears.wav</HolidayPrompt>
<Holiday>5/30/22</Holiday>
<HolidayPrompt>MemorialDay.wav</HolidayPrompt>
<Holiday>7/4/22</Holiday>
<HolidayPrompt>IndependenceDay.wav</HolidayPrompt>
<Holiday>9/5/22</Holiday>
<HolidayPrompt>LaborDay.wav</HolidayPrompt>
<Holiday>11/24/22</Holiday>
<HolidayPrompt>Thanksgiving.wav</HolidayPrompt>
<Holiday>12/25/22</Holiday>
<HolidayPrompt>Christmas.wav</HolidayPrompt>
</HolidayList>
12-22-2021 11:04 AM - edited 12-22-2021 11:07 AM
I would think that the second option would be what you need. However you don’t need to have the whole name of the prompt file to play as you could construct that within the script code.
12-22-2021 11:37 AM - edited 12-22-2021 11:37 AM
This tread should get you along the way with this.
https://community.cisco.com/t5/contact-center/uccx-read-data-from-xml/td-p/3769459
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