Genesys Cloud CX

 View Only
Discussion Thread View
  • 1.  Make a Time/Day of week based Decision in an Inbound Flow

    Posted 06-30-2022 10:23
    Hi, I am giving a call a certain set of ACD-Skills, depending on the time before or after 4pm. Got this working, but now it would like to do this Monday to Thursday only at 4pm and on Friday it should change at 3pm. Here is what I´ve done so far.

    At the start of the Flow I´m already setting LocalDateTime with DLS

    and than make the time based decision


    Can someone help me to make it different on Fridays compared to the other workdays?
    #ArchitectureandDesign

    ------------------------------
    Thomas Repking
    Canada Life Group Services Limited
    ------------------------------


  • 2.  RE: Make a Time/Day of week based Decision in an Inbound Flow

    Posted 06-30-2022 10:47
    Hi
    You could use schedules and schedule groups to achieve this.

    Schedule group for your open closed etc.
    Under open
    A schedule that's Mon - Thurs, 4pm - ?
    If active route to required skill
    If not active another schedule

    Schedule Friday 3pm - ?
    If active route to required skill
    If not active route to normal hours skill

    Its a bit of an eyesore, but would work

    ------------------------------
    Philip Thys
    British Telecommunications PLC
    ------------------------------



  • 3.  RE: Make a Time/Day of week based Decision in an Inbound Flow

    Posted 06-30-2022 10:52
    Thank You Philip, we are using schedule groups for the general open hours and so on. I would prefer not to do another one but to make it with a decision in the flow.

    ------------------------------
    Thomas Repking
    Canada Life Group Services Limited
    ------------------------------



  • 4.  RE: Make a Time/Day of week based Decision in an Inbound Flow

    Posted 07-01-2022 14:06
    Hi Thomas,

    You could use the DayOfWeek() function to retrieve what day of the week it is. Per the documentation, the function: Returns the day of week from the supplied Date as a value from 1 to 7. Sunday=1, Monday=2, Tuesday=3, Wednesday=4, Thursday=5, Friday=6, Saturday=7.

    So you could just add a decision step that says: DayOfWeek(GetCurrentDateTimeUtc())== 6, take the path for Friday.


    ------------------------------
    Peter Stoltenberg
    Avtex Solutions, LLC
    ------------------------------



  • 5.  RE: Make a Time/Day of week based Decision in an Inbound Flow

    Posted 07-04-2022 03:17
    Thank You so much Peter, that works perfect!

    ------------------------------
    Thomas Repking
    Canada Life Group Services Limited
    ------------------------------



  • 6.  RE: Make a Time/Day of week based Decision in an Inbound Flow

    Posted 07-04-2022 03:36
    Thats great Peter, I shall be stealing that!

    ------------------------------
    Philip Thys
    British Telecommunications PLC
    ------------------------------