Author Message
Karthi.ariraman
Joined: Aug 31, 2022
Messages: 10
Offline
Hi Team,
I have some routing logics based on that wanted to check the day of week and time ,call routed to an agent. But in ED , I am seeing getCurrentTime() function. It is giving the output format YYYY-MM-DD HH:mm:ss. I need to take day of week and time to check business logic. Which is the best way to do with ED? Any suggestions or examples much appreciated.(or) Can we write any custom logics using Javascript, Please let me know ,Which block should use for that.

Thanks
Karthik
AnuragAggarwal
Joined: Jun 1, 2014
Messages: 154
Offline
You can check time by substringing like

getCurrentTime().toString().substring(11,13) > 09

etc

unfortunately there is nothing to get day of week. We can add it in next version of ED. No you can not write custom js
Karthi.ariraman
Joined: Aug 31, 2022
Messages: 10
Offline
Thanks Anurag. Please update us ,once you added the day of week in ED.
Karthi.ariraman
Joined: Aug 31, 2022
Messages: 10
Offline
Hi Garywoody,
Thanks for the explanation. Will you able to share your ED screenshot? I am not able to see the Advanced tab in my ED. Which version are you using? Please guide me ,how to get the Advanced tab in ED. This will be a great help for me.

Thanks
Karthik
Go to:   
Mobile view