UCCX 7 Holiday Script

Hi Team,
I am about to create a Script to check the holidays for UCCX as we getting close to Xmas, we need it.
I used the attached script, if someone can check it for me i rally appreciate it.
It gave me the error

Not sure I understand the question.
But the difference between our statements is that you use / to separate the date sections.
You use date(05/31/2010)
I use date(2010,5,31)
The help section in UCCE states
"Note: Do not use the slash  (/) character in defining a date function. Because it is the division operator,  the function would not return the results you are looking for. You could enclose  the argument within a string----but the preferred format is: . "
For me the only one that has worked is date(2010,5,31).
It is easy to test. Knock up a simple admin script (start node, if node and two end nodes) and populate the IF node with my date format.
Remember my formula in the IF node , date()=date(2010,5,31) , is asking if today's date is 31/05/2010. You need the "date()=" at the beginning to specify today's date.
Hope this helps.
Regards
Duncan
Please rate helpful posts...

Similar Messages

  • UCCX Holiday Scripting Issue

    Hello All,
    I have a script, which does a subflow to the HolidayCheck.aef script to check for holidays. That part is working fine. However, how do i get the HolidayCheck.aef script to also honor the times that is in my Holiday.xml file. For instance, I want today to be a holiday, but I dont want the holiday to start until 1330. Until then, I need the normal call routing up until 1330. I have attached the HolidayCheck.aef and the Holidays.xml document for your reference. Any assistance is greatly appreciated.

    I'm sure there are real programmers on the forum who would do this differently, but this is how I would approach it.
    What you might try is changing the open and closed time values in your XML file from 0000 to "12:00 AM" and from 1330 to "1:30 PM". Be sure to enclose your values in quotes. Then, in your script create 2 new Date variables, dOpenTime and dCloseTime. Create 2 string variables, sOpenTime and sCloseTime. Have 2 Get XML Document Data steps to read the open and close times from your XML file and store those in sOpenTime and sCloseTime, respectively. Have a set step to concatenate sHolidayDate with sOpenTime, Set dOpenTime = sHolidayDate + " " + sOpenTime and a set step to concatenate sHolidayDate with sCloseTime, Set dCloseTime = sHolidayDate + " " + sCloseTime. This will give you an open date/time and close date/time which you can use for comparison to the current date/time. In your If (sCurrentDate == sHolidayDate) true branch have another If statement, like If (dSystemDate >=  dCloseTime) Then .... Set bHolidayToday = true. If the current date/time is between the open/close times set your bHolidayToday to true. You can also do an If statement to see if the current time is between the open/close time like If (dSystemDate >= dOpenTime && dSystemDate < dCloseTime) Then ...
    I played with this on my IPIVR system and was able to make it work.
    This should give you a starting point to refine the steps to make this work for your environment.
    I hope this works for you.
    Bill

  • Need help with Holiday script

    Hi All,
    I am not sure why my Holiday scripts keep returning Null, I have attached the script and xml files.
    If someone can help would be great.
    Thanks,
    Hamed

    So if you read through the logic of the script, it looks for Hokiday1 in the XML file theN Holiday2 then Holiday3, etc. As soon as it find one that doesn't exist is when the loop ends. If it doesn't find any, it returns null. Since your XML file starts with Holiday2, it returns null when looking for Holiday1 and then exits the script. I would try changing your XML file to begin with Holiday1 and aee what the debugging looks like after that.

  • UCCX Holiday Error

    Hello,my script doesn't recognize holidays, i created a XML file with the dates a holiday script and the main script pointing to the holiday script , when i check with the reactive debug he checks the holiday and it goes to the open menu. any suggestion?

    Here are some more details. very likely you may not be reading your xml. Below are some details however if it does not help shoot me an email I have 2 scripts one main one to check holiday and the holiday xml file I can share. [email protected]
    Updated for IPCC Express 4.0 and above by [email protected]
    The ipccx4holiday script uses an xml file, dates.xml, as a list of holiday dates. The
    script will compare "todays date" with all of the date entries in the file. If it finds
    a match, it will set the boolean variable todayIsAHoliday to "true". This script
    can be called as a subflow with this boolean variable. The variable can be
    tested by the calling script to perform the desired holiday action if true.
    The dates.xml file should be placed in the install folder, typically:
    c:\Program Files\wfavvid
    A template for the text file input is included below. Change the 3 sample dates,
    add dates for 4-10, and add more if needed.
    <?xml version="1.0" encoding="ISO-8859-1"?>
    11/24/2005
    11/25/2005
    12/25/2005

  • Creating a Holiday Script in UCCX

    I have found a script and feel comforatble incorporating it into my existing script to read a holiday.xml file which will reside on the ccx server which according to the documentation that I have found should be placed in the  /var/temp directory on the uxxc server.  This is where I am lost on the process, first of all is this the correct location for the file to be placed and secondly if so what are the commands to copy this file to this location?  I'm lost when it comes to unix/red hat commands.                 

    Hi,
    no, you don't place it to a directory. In UCCX, for the ordinary user, there's no such thing as a directory on the file system, you don't even know there is a file system at all. UCCX is an appliance, a black box, we don't need to know almost anything about the underlying platform (although we know about it a lot, we cannot admit that).
    You can, or, actually, you have to use the Document Repository. Think about it as a virtual filesystem. You can easily upload files to there using the web admin interface of UCCX, and you can easily reference them in your UCCX scripts. Should anything bad happen to your UCCX, the Document Repository is backed up and may be easily recovered.
    So if you have a file named holiday.xml, and it sits in the en_US folder of the UCCX Document Repository, all you have to do is: D[holiday.xml] - voila, use it in a Set step, like this:
    G.

  • UCCX Hot Script Update

                Can you update a script while it is running?   If you have to get in an change the script from Open to Closed because of the Time of Day, Day of Week needs updateing, any danger when uploading the revised script?  
    Peter Buswell

    Peter,
    You can add variables to your script as parameters that allow you to change the functionality of the script through the application that you create.  You can also act on external sources like Gergely stated. 
    We use both of those a lot in our scripts.  (Holiday check, manual open/closed, etc. all use external sources. XML/DB Query)  If you get creative you can make time of day checks based on parameters as well. 
    As Jonathan stated, you can update the script on the live system and the next trigger gets the changes.  It is highly recommened not to do that unless necessary. 

  • ABC of UCCX XML scripting

    Hello guys,
    I have been working in support for a while now so I've come accross a number of XML scripts. What I've  found was that  modifying   them was not extreemly hard because most of the work was already done, but trying to build it from scratch is very hard for me unless I just want to copy what some else has already done and just add a few modification to it and pretend its my work.
    I would like a cituation where I'm given a scenario and I am able to single-handedly create a script to meet the task. Can anyone advise me on what to read, which forumes to visit etc please?
    For instance, the command  below is a mistry to me even though I can see what the intension is. I need to understand the reason behind every forward slash, backslash etc.    
    "/descendant::XMLDataResponse/child::XMLDataResult/child::PhoneNumber") 
    The above sytax was taken from the link below.
    : https://supportforums.cisco.com/thread/2108527

    hello Guys,
    I just have one more question. So basically I have been reading the link you showed me and I've really loved it. So I went back to one of the old scripts I've worked on the past and I thought I'd actually attempt to fully understand it.  I saw an Xpath syntax in the uccx script that looked really odd to me.   just want to share it you guys maybe you will be able to shed some light on it.
    Firstly, here is the XLM doc Contents:
    ==============================
    <?xml version="1.0" encoding="UTF-8"?><
    Emergencys>
    <Emergency1>falseEmergency1>
    Emergencys>
    ==================================
    The original xpath syntax that was used to grab the value of the Emergency element is as listed below.
    ==============================================================================
    "/descendant::Emergencys/child::" + EmergencyTag
    ===============================================
    I wrote an xpath syntax that I think could probably grab the value of the emergency element too:  I have pasted it below
    ==========================================================================================
    /descendant::Emergenys/child::*/text()
    ==========================================================
    Guys, the thing I dont understand about the syntax below is Why was there any need to add  ' + Emergency Tag'   at the end of the Xpath syntax ?
    "/descendant::Emergencys/child::" + EmergencyTag

  • UCCX Callback script help

    Hi Guys,
    My first foray into IPCC based scripting and I've run into a few problems.
    Firstly, what I'm trying to do, is allow a user to press a button during during the queue process, which then allows them to manually input their call back number.
    Once an agent becomes available, the system calls the agent and the callback number and connects them..
    I've attached the script that I'm working with, and the log file.
    What I'm seeing is, I can get one call queued, and it works fine, the agent comes online, the system calls the agent prompts them to initiate the callback (press any key) and then connects them to the user.
    When I have multiple callbacks in the queue I get the "Narky Lady" informing me we have system problems. This happens to all the queued callbacks.
    The second part is I'm getting "Event queue time exceeded" and the call is being dropped out of the queue after the callback has been queued.
    I'm running CUCM 7.0.1.11000-2 & UCCX 7.0(1)_Build168
    Any help would be appreciated, or if someone could point me to a working example?
    Thanks

    There are several items that could be causing the issue. I'm assuming that the Place Call step is calling a route point and ultimately a script that is placing the call in queue.
    How many sessions do you have available for this second queue application?
    Prior to your Place Call step, you need to dequeue the call and terminate the original call leg.
    Remove the Set Contact Info step from the Wait For Agent section.
    I'm not sure why you have the Play Prompt after the call has been connected. I would play the caller in the Get Digit String under the Wait For Agent section.
    Those changes should get this to work as long as my original assumptions are correct.
    You may want to consider some additional factors in your next revision of this script:
    -What if an agent hangs up on the queue callback request? You can use the On Exception Goto and catch the ContactInactiveException to work around this issue.
    -You will need to handle the busy, invalid, and unsuccessful nodes in the Call Redirect step. I would suggest creating a loop and having it requeue the call again up to 3 times.
    -When you get the callback number, make sure to get 7 or 10 digits depending on your requirements. You amy also need to prepend a 1 to those numbers outside of your local area codes.
    -This script may be strange for agents to handle because they don't have the name of the caller. You could have the caller record their name and play it in the callback loop with the phone number.

  • UCCX * Recording Script

    Team - I used to have a recording script that would collect prompt number like 345 and record a wavefile 345.wav.
    It workd in UCCX7 not in UCCX 8. Is there any path information I need to set correctly for this to work? Will defining a document variable wavfile
    doing a Recording step to save to wavfile
    and write wavfile document to say
    promptnumber + ".wav" work where promptnumber is the collected digits 345? It seems to fail on UCCX8. Thanks

    Unlike the Windows version where you can see the prompts in wfavvid, in
    version 8, they are uploaded to the Repository where they are stored.
    Windows release (7.01) versus Linux (Version 8)
    They then can be seen in the appadmin under the navigation: Cisco Unified
    CCX Administration.
    Then Applications\Prompt Management.
    NOTE:
    Manage prompts. Many applications make use of pre-recorded prompts, stored
    as .wav files, which are played back to callers to provide information and
    elicit caller response. You must upload these .wav files to the repository
    and make them available to the Unified CCX system.
    In the Version 8 UCCX, that location for the user prompts is not a path you
    will be able to access due to root passwords are needed.
    But, the path is Opt\Cisco\UCCX\Prompts\user
    Attached are the default scripts for UCCX 8 which can be found on the pc
    that has the Editor downloaded.
    C:\Program Files\wfavvid_802\Scripts\system\default
    Also, make sure you do not have Create file document step ..else you could be running into this bug :
    http://cdetsweb-prd.cisco.com/apps/dumpcr?identifier=CSCti89552&parentprogram=QDDTS
    Thnaks
    Ankita

  • UCCX 9 Script wait time`

    Is there a way in UCCX to let callers know that if the estimated wait time is more than 5 minutes or less than 5 minutes to prompt? I'm being asked that the caller only be told if their place in queue is less than 5 or more than 5 minutes; not exact times. I realize this could be frustrating to hear as a call if you've been on hold for 35 minutes to hear, "Your estimated wait time is greater than 5 minutes." But that's what I'm being asked....
    Thanks in advance!

    Yes you can, first, only play the prompt once when the caller first gets into the queue. Then dont play the estimated time after that.
    Ues the Get Reporting Statisic and put in on an INT.
    Then use an IF Statement for more or less than 5 minutes.
    Let me know if you need more help, I am out of the office right now, but can post a sample latter.

  • UCCX v7 Script Trigger Limit?

    I'm having an extremely difficult time getting calls to complete to an agent in an enterprise queue. Each agent in this queue has their own TFN which is directed to their specific trigger in the application. At one point this agent was able to handle her own calls, then calls stopped ringing to her and went directly into overflow where they'd be handled by another agent and forwarded back to her. 
    Without any understanding why and no log to provide detail I deleted the agents skill, resource assignments, CSQ, and team settings. After rebuild she worked again, then suddenly stopped working. Same deal, no reason why, calls just seem skip over her and dump right into overflow. 
    I opened a case with TAC and they were only able to help up to the same point where I made changes. They did exactly what I did but this time no calls are completing to her ever, they all go directly into overflow. I asked the engineer if there is a limit in CCX to the overall number of triggers any one application is allowed? 
    Other than going out of my mind to fix this, I have no other ideas, TAC couldn't help, and I have no backup or support at my company to provide any other suggestions.
    Any help is greatly appreciated.

    Hi Aaron, thank you for responding. 
    Yes, in reactive debug dialing the trigger runs the correct script. stepping through the logic follows correctly and assigns the call to the correct skillSet variable. I tried on 5 other agents the same debug and the call lands on their resourceID correctly. When dialing the problem agent, it ignores her completely and sends the call into overflow assigning to whatever available agent is ready longest in queue. That agent then forwards the call back to the correct agent. This makes no sense and it's driving me crazy.

  • UCCX 7 Scripting Question - secret option to go straight to CSQ?

    Hi guys,
    I have a simple script that plays a number of individual greeting/ notification prompts (welcome, call may be recorded etc) before sending the caller to a CSQ or queueing if none available.
    There are no menu options played to callers and hence no menu step in the script but the customer wants the option for people who regularly call in to their call centre to be able to press a digit so they can bypass the greetings ang go straight to the CSQ.
    What is the best way to achieve this and do i need to use a menu step to achieve this functionality??
    Cheers,
    G

    Well there are probably a few ways to go about this. A Menu step is certainly a valid way to do it. You would need to set the Retries parameter to 0 to prevent the prompt from saying "Are you still there?" and repeating. Also ensure that Barge In is set to True so the caller can press the digit any time during the prompt.
    Beyond the Menu step itself you can likely just slap a label on your Select Resource step and then add a Goto in the success branch of your Menu step.

  • Uccx outbound script & .txt file

    Hi all,
    I have a file (.txt) to import contacs to outbound. This file have: name, lastname, phone, account. I would like to play a prompt depends of account field.
    How to get this field into variable in a script to use this way.
    Which is you recomendation?
    Regards,

    following query returns no output
    "select concurrent_program_name, multi_org_category
    from fnd_concurrent_programs
    where concurrent_program_name = <concurrent short name>"
    I have tried to run from the UKHRMS responsibility as well but the report is still giving me the same results i.e. 0 .
    pls note that the following SELECT commands do not give any out put ... i.e. after running the concurrent request from the application end.
    select rpad(rtrim(name),40)||' '||rpad(nvl(account_number,' '),16)||' '||
    substr(to_char(amount,'0009999999.99'),-13)||' '||
    rpad(rtrim(bank),35)||' '||lpad(nvl(branch_code1,' '),2)||lpad(nvl(branch_code2,' '),2)||lpad(nvl(branch_code3,' '),2)||' '||
    lpad(nvl(branch_code1,' '),2)||lpad(nvl(branch_code2,' '),2)||lpad(nvl(branch_code3,' '),2)||' '||
    rpad(nvl(branch,' '),35)||' '||
    rpad(rtrim(employee_number),6)||' '||payday
    from xx_banks_direct_payments
    order by bank, branch_code1,branch_code2,branch_code3, name
    select bank, lpad(rtrim(count(employee_number)),4)||
    ' '||substr(to_char(sum(round(amount,2)),'999,999,999,999.99'),-13)
    from xx_banks_direct_payments
    group by bank
    order by bank
    select ' Totals: Number of Employees: ' ||' '||count(employee_number)||' '||' Amount:' ||' '||substr(to_char(sum(round(amount,2)),'999,999,999.99'),-13)
    from xx_banks_direct_payments
    pls help

  • Working with TimeZone variables in UCCx script

    Hi Team
    I'm wondering if you guys could help me to find out the best way to work with TZ variables in UCCx script.
    Because of different countries customer has a branches, I need to setup different TimeZones for each country handled by the same centralized UCCx.
    In this post they use Java to work with TZ, however, but I prefer another way to work with TZ variables:
    https://supportforums.cisco.com/discussion/11851751/how-make-uccx-holiday-script-timezone-aware
    My idea is to work with Time Zone variables in the script, so what I did was to create different TZ variables and each one of the them assigned the proper timezone based on the country, so depending of the Trigger involved (DNIS), I can find witch country this call came from and give the right timezone.
    The problem I have is that at the time I want to add or subtract two variables of TZ, I got an error because of the syntax. I've been trying different options, but until now, no luck.
    Would you mind you guys who had been working on this let me know what is the right syntax to add or subtract TimeZone variables un UCCx?
    Thanking you in advance
    Martin

    Hi
    I've been working on TZ's recently... see this post:
    https://supportforums.cisco.com/discussion/12474756/how-check-daylight-saving-within-uccx-script
    My approach in the scripts was that basically I allow the department to set their opening hours in the timezone of their choice.
    They have a management web page served from CCX that accepts start/end times each day, and a timezone. That all gets stored in XML.
    In the script, based on that information I get the current time in whatever timezone is set, and compare that to the XML open/close times.
    Similarly for holidays, I get the current date/time in the holiday TZ and compare the holidays to that.
    Aaron

  • UCCX 8 Holiday subflow

    I am trying  to invoke a holiday sublow from the 71 script repository on UCCX 8.
    However  when I invoke the call subflow step(call Subflow(Script[baselineholiday.aef])
    I get a java error thrown at me.
    The java error reads
    "Java extensions are not licensed to support method invocations (line:  1, col: 1); nested exception is:  com.cisco.expression:ExpressionLicenseViolationException:  java  extensions are not licensed to support mething invocations (ine: 1, col:  1)
    etc
    I am not quite sure how to get around this.
    I have an output mapping in my call subflow (output isHoliday to isHoliday) but this does not seem to the issue as  I get the error whether I have that or not
    can anyone point me in the right direction ?
    for reference: I am running UCCX 8 standard edition
    TIA

    So it appears that I can't use any java calls whatsoever in UCCX 8 standard. It least it sure appears that way
    I can't call any subflows (which was my original issue). to test, I then took all of the baselineholiday script and incorporated it into my test script, it also caused my triggers to not work any longer.Any time that I hadsome sort of java,my triggers no longer work and I can not do any reactive debugging
    I think that this means that a lot of the repository is useless to me in terms of prebuilt scripts and that I will have to figure out some scripting ways around this.
    Can anyone cooroborate that java support is gone(maybe just in the standard version)and....does anyone have a working holiday script to reference an XML document for UCCX 8 that does not have java??
    TIA

Maybe you are looking for

  • External Drive not working with Firewire connection

    I just purchased a Western Digital My Book external drive. My Mac recognizes it when I use a USB cable but not a Firewire. I have downloaded all the WD updates and firmware. Any suggestions? Thanks

  • Organizer 13 dings when opening it in windows 8.1 pc

    Anyone have this same problem and know how to fix it? It works fine on windows 7 but not windows 8.1. Thanks

  • Anyone know of a mouse emulator for a touchscreen?

    I'm looking to buy a PowerMac G5 and get two screens for it. One just for normal viewing and the other (a touchscreen) to use as keyboard and mouse and also for viewing. I plan on using the setup for music production but I need to know if there is su

  • Database access

    Hi all. I am trying to write a database access program that is accessible by username and password.I keep getting the following error: ' syntax error( missing operator) in query' is in this line of code "SELECT 'selection choices' FROM 'table name' +

  • Error in Generation SID

    Hi gurus... In the z object error message comesup. "Value in SID table is 000000000087660001; correct value is 000000000087660001; SID in SID table is 169947"...How to correct this error Thanks in advance