Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Check time of day and day in a task

    Posted 06-12-2017 07:12
    No replies, thread closed.

    Hi, I would like to build a task that does something like this:

    We also need to check what day it is. 

    The task should be somewhat like this. 

    Have done and testet the part that checks the time, but not sure how to do the day part.

     

    Check time 

    After 16 (4PM)-> forward to number xxxxxxx 

    Before 16 -> Check day 

     

    Check time 

    Before 8 -> forward to number xxxxxx 

    After 8 -> transfer to queue 

     

    Check day 

    Monday - friday -> Check time 

    Saturday - Sunday -> forward to number xxxxxx 

     

     

    Its the "Check day" i'm not sure how to make. 

     

    This is what I have so far.

     

    Does someone have a smart way to do this?



  • 2.  RE: Check time of day and day in a task

    Posted 06-12-2017 14:04
    No replies, thread closed.

    Use the DayOfWeek function.

     

    For example, DayOfWeek(GetCurrentDateTimeUtc()) would return 2 because today is a Monday.



  • 3.  RE: Check time of day and day in a task

    Posted 06-13-2017 06:55
    No replies, thread closed.

    OK, so DayOfWeek works like Sunday = 1, Monday = 2 and so on?

    But can I use OR and AND?

    It should be routed based on monday - friday and saturday - sunday.



  • 4.  RE: Check time of day and day in a task

    Posted 06-13-2017 14:23
    No replies, thread closed.

    Yes you can use the and/or operators. So this

    DayOfWeek(GetCurrentDateTimeUtc()) > 1 and DayOfWeek(GetCurrentDateTimeUtc()) < 7

    would return true Monday through Friday.



  • 5.  RE: Check time of day and day in a task

    Posted 06-15-2017 12:04
    No replies, thread closed.

    I think I got this to work now.

    I just used something like DayOfWeek > 1.