Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  configure a workflow so that it waits until a specific time

    Posted 26 days ago

    Hi,

    I want to configure a workflow so that it waits until a specific time. I get the callbackScheduledTime in string format, e.g., "2026-01-14T09:32:00Z." Can I use the wait expression in the workflow so that the workflow waits until this time? If so, how?

    Viele Grüße,

    Thomas Repking


    #Architect

    ------------------------------
    Thomas Repking
    CS
    ------------------------------


  • 2.  RE: configure a workflow so that it waits until a specific time

    Posted 26 days ago

    We developed a Cloud Function in Genesys that takes an integer and waits that amount of time.  Of course, that is limited to 15 seconds each call. Using a workflow, you can set a variable for a set time x minutes in the future of NOW and then have a loop that checks that every few seconds (15) if you have a cloud function doing the waiting.  Other option is a web service that does the same thing with a longer timeout.  



    ------------------------------
    Robert Wakefield-Carl
    ttec Digital
    Sr. Director - Innovation Architects
    Robert.WC@ttecdigital.com
    https://www.ttecDigital.com
    https://RobertWC.Blogspot.com
    ------------------------------



  • 3.  RE: configure a workflow so that it waits until a specific time

    Posted 25 days ago

    Hi Thomas,

    the basic solution is simple: use the wait function with "DateTimeDiff() together with the time of your callback and the GetCurrentDateTimeUtc()-funktion. But as "GetCurrentDateTimeUtc" useses UTC-Time and your callback is likely to be in another timezone it starts to become problematic.
    Please check DateTime values in Architect flows and Daylight Savings Time (DST) calculations - Genesys Cloud Resource Center and maybe https://developer.genesys.cloud/devapps/api-explorer#get-api-v2-timezones will be helpful.



    ------------------------------
    Christoph Domaschke
    Produktmanager Kunden-Dialog-Center
    ------------------------------



  • 4.  RE: configure a workflow so that it waits until a specific time

    Posted 25 days ago

    Hi @Thomas Repking,

    Could you expand a little more your case? You need to trigger a workflow when a scheduled callback is reached?



    ------------------------------
    Saugort Dario Garcia
    Arquitecto de soluciones
    ------------------------------



  • 5.  RE: configure a workflow so that it waits until a specific time

    Posted 24 days ago

    Yes, I have a trigger that starts once a callback is scheduled by an agent. I need the workflow later on to wait until the callbackScheduledTime is reached. The trigger delivers the callbackScheduledTime in epoch time. I did the following and it works now. integer variable Flow.tageSeitEpoch = ToInt(DateTimeDiff(GetCurrentDateTimeUtc(), MakeDateTime(1970, 1, 1, 0, 0, 0))), integer variable Flow.warten = Flow.callbackScheduledTime - Flow.tageSeitEpoch, wait action = MakeDuration(0,0,0,0,Flow.warten)



    ------------------------------
    Thomas Repking
    CS
    ------------------------------