11-07-2018 04:25 AM - edited 03-14-2019 06:36 PM
Hello Expert,
I have managed to create a Holiday check script and I can see during reactive debug it shows all of the logics correct but call goes to open hours, ideally it should go to closed hours and I am wondering if I did something wrong or required some modification in it. If anyone who is good in scripting please help me out on this as my business need this one out.
I did attach the screenshot of the reactive debug, please let me know your advise on this.
Regards,
Asif
Solved! Go to Solution.
11-07-2018 09:18 AM
The problem is with your If step:
If (holidayClosed == todaysDate) Then True Goto Closed False Goto Open
You already know that today is a holiday, because your Get XML Document Data step has found a match, else it would have returned null.
Just replace your If step condition with this condition:
If (closedForHoliday != null && closedForHoliday.trim().toLowerCase() == "true") Then True Goto Closed False Goto Open
11-07-2018 09:18 AM
The problem is with your If step:
If (holidayClosed == todaysDate) Then True Goto Closed False Goto Open
You already know that today is a holiday, because your Get XML Document Data step has found a match, else it would have returned null.
Just replace your If step condition with this condition:
If (closedForHoliday != null && closedForHoliday.trim().toLowerCase() == "true") Then True Goto Closed False Goto Open
11-08-2018 06:25 AM
11-08-2018 08:56 AM
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