09-28-2017 05:59 AM - edited 03-15-2019 06:32 AM
I'm pretty new to Uccx scripting and I'm pretty confused. I created a HolidayCheck routine that works perfectly on is own. I have a boolean variable that is set to true whenever today is a holiday. I'm trying to call that Script from my main Call Center by using the Subflow routine call but for some reason it never changes my variable to true in my main script. I might be something wrong but I'm pretty confused. I tried changing the variable from a boolean to a string and still I never get true in my main script. I even tried changing to a int and see how many loops it goes through and I get a count of 2 loops, when in fact I'm suppose to get 4, which is far from the correct amount.
I don't know if there enough info in my post for you guys to figure out why but I could post some screenshots of my scripts.
Thank you for the help!
Solved! Go to Solution.
09-28-2017 01:50 PM
Are you sure the variable in the holidaycheck script is ever returning true?
From the looks of it, you are comparing dates in two completely different formats.
See attached. September 28, 2017 will never = 9/28/2017
09-28-2017 01:58 PM
Ok try this-
Change datTodaysDate to a string with value null
No "quotes"
Then, open the properties on that first set step (a couple times if need be) until it shows short date in a drop box next to the D[now] value
09-28-2017 02:04 PM
09-28-2017 02:23 PM
09-29-2017 06:51 AM
Sweet Jesus. After 2 days of testing I finally figured it out. When I was testing my HolidayCheck on it's own for some reason the document it was loading was in Document\En\Holiday.xml so everytime I made a change to the Holiday.xml I was uploading it in there. But for some reason When I call the subflow the Holiday.xml it's loading is in Document\FR_CA\Holiday.xml which I never made a change since day one. So by uploading it there everything is perfect now! Can anyone tell me why that is though. Is it something I should be doing, uploading my file in every sub container in the Document Folder?
Btw I got to this conclusion by adding my HolidayCheck directly in my CPTE_A_PAYER Script under a label that's where I saw that the docDateList only had one Holiday in and not 6 like my newest Holiday.xml
09-29-2017 06:56 AM
I had similar issues..
Initially, I just renamed an old holiday check file I had to what you named yours. Just to test that dates were being pulled and tested correctly.
Then when I got your xml and uploaded it to overwrite the old one, for some reason, the script was still pulling the old values. It finally worked when I renamed both the xml and it's variable in the script to something unique.
Seems like maybe it caches that initial file or something?
Anyway.. glad you figured it out.
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