04-04-2020 11:43 PM - edited 04-05-2020 12:41 AM
Hello,
I am using Calendar step successfully and everything is working as expected but Is there a way for example to get the Calendar date from the script itself.
For example to create any kind of XML or JSON document (with the corresponding steps) with Calendar data and after that I could use these data for Prompting the working hours.
I can retrieve only something like this: "§com.cisco.cccalendar.CCCalendar§CCCalendar [id=1]§" but no data.
Any suggestions would be much appreciated!
Solved! Go to Solution.
04-05-2020 05:57 PM
I poked around the calendar object a little and found nothing. But that's ok, because you can access the calendar configuration via the Admin API, using the Make REST Call Step.
https://developer.cisco.com/docs/contact-center-express/#!get-calendar/get-calendar
Do you know how to use this?
04-05-2020 10:28 AM
Not sure what result format for which you are looking. Here's a method to create a short date in a variable of type 'String.'
Set a variable of type String = to an assignment type variable Date (create these below in the variable pane first).
Open the Expression editor for the assignment variable.
1. Click the Date tab
2. Click on the Date constructor and select "new Date()"
3. Validate new Date() shows in the expression editor pane
4. Click 'OK'
Select the "Short Date" option in the resulting window. Click "OK."
When this step item runs, it will produce the date in the following format MM/DD/YY:
Hope this helps.
-Sean
04-05-2020 11:12 PM
Hi Sean,
Thank you very much for the detailed explanation.
I was not searching exactly for this kind of data.
Thank you for your replay on that topic.
04-06-2020 11:53 AM
04-05-2020 05:57 PM
I poked around the calendar object a little and found nothing. But that's ok, because you can access the calendar configuration via the Admin API, using the Make REST Call Step.
https://developer.cisco.com/docs/contact-center-express/#!get-calendar/get-calendar
Do you know how to use this?
04-05-2020 11:10 PM
Anthony,
Thank you very much!
That is exactly what I am searching for.
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