06-27-2024 03:19 AM
Hi, when using CCCalendar variable it is always a parameter by default and is set an application level. Is it possible to set/choose the calendar dynamically based on a string from the script?
My idea: From the 'Get Call Contact Info' I will get the Calling_Number as String. After that I will set a Customer_Number = Calling_Number.substring(3,7). How to use the Customer_Numer string to get the corresponding CCCalendar which name is equal to Customer_Number?
Solved! Go to Solution.
06-28-2024 04:33 AM
The solution is to query the UCCX API endpoint `/adminapi/calendar?detail=brief` from the script and use the returned data to fetch teh calendar-id.
06-27-2024 03:25 AM
A parameter is nothing more than a variable made available in the application webUI. So it should be possible to define the value of the variable by script steps and then use the calendar call in the script to retrieve the content of the calendar data. This said I’ve actually never used the built in calendar in CCX as we use a 3:rd party system for our calendar management, but in theory this should work. Try it out and let us know if we’re missing something with this.
06-27-2024 04:59 AM
From the documentation: Select a variable of type CCCalendar to configure a calendar. By default the variable is always a parameter and cannot be modified.
In conversation https://community.cisco.com/t5/contact-center/uccx-12-0-1-calendar-sample-script/td-p/4006128 a hack is described: Extract calendar-id from CCX admin URl and use new CCCalendar('calendar-id').
But I want to use the name of the calendar and an id that must be extracted from a URL.
06-28-2024 01:07 AM - edited 06-28-2024 01:39 AM
The hack with the calendar-id is working, but im still looking for an opportunity with the calendar name
06-28-2024 03:42 AM
06-28-2024 04:33 AM
The solution is to query the UCCX API endpoint `/adminapi/calendar?detail=brief` from the script and use the returned data to fetch teh calendar-id.
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