Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Total time in the queue for inQueue message flow

    Posted 10-04-2024 06:40
    No replies, thread closed.

    Hi 

    i'm trying to get total time in queue for an interaction in  inqueue message flow for difference treatment. can someone please help to find this value in integer form to check in 'decision' node. Can we get queue time value from below expression? and where we need to check this in inqueue message flow? 

    ToInt(DateTimeDiff(GetCurrentDateTimeUtc(),Flow.StartDateTimeUtc)) 

    Best Regards,

    thomas


    #ArchitectureandDesign

    ------------------------------
    Tibin Thomas
    Mannai Trading Company WLL
    ------------------------------


  • 2.  RE: Total time in the queue for inQueue message flow

    Posted 10-04-2024 09:20
    No replies, thread closed.

    Hello Tibin, 

    I would also try posting this in developer forums as this looks like you are looking for a specific expression you need help with. 

    I have also searched the developer forums and found this posting that is kind of similar to your needs. 

    Hope this helps!

    Cheers



    ------------------------------
    Cameron Tomlin
    Online Community Manager/Moderator
    Genesys - Employees
    ------------------------------



  • 3.  RE: Total time in the queue for inQueue message flow

    Posted 10-07-2024 03:25
    No replies, thread closed.

    Hello Cameron,

    Thanks for your help, i went through the developer forum link and tried to put below expression on decision node, unfortunately not received expected outcome.

    ToInt(DateTimeDiff(Flow.StartDateTimeUtc,GetCurrentDateTimeUtc()))

    what will be the exact outcome of above expression, is it time in milliseconds and then convert the value to an integer?

    i'm new to message flows in Genesys, where we need to apply this decision node? i have tried this on 'Recurring State' of the inQueue message flow.

    Best Regards,



    ------------------------------
    Tibin Thomas
    ------------------------------



  • 4.  RE: Total time in the queue for inQueue message flow
    Best Answer

    Posted 10-04-2024 10:40
    No replies, thread closed.

    If all you want it is the time from the start of the flow to the current time, I would set a variable for the current time when you start the in-queue flow with GetCurrentDateTimeUtc() or use the Flow.StartDateTimeUTC variable.  Then at the decision, you can use this as the operator:  TimeDiff(ToTime(GetCurrentDateTimeUtc()), ToTime(Flow.StartDateTimeUtc))



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



  • 5.  RE: Total time in the queue for inQueue message flow

    Posted 10-07-2024 03:36
    No replies, thread closed.

    Hello Robert,

    Thanks for your suggestion, let me try this on inQueue message flow.

    Best Regards 



    ------------------------------
    Tibin Thomas
    ------------------------------



  • 6.  RE: Total time in the queue for inQueue message flow

    Posted 10-09-2024 03:14
    No replies, thread closed.

    Thanks for your suggestions. 

    I have tried below expression in under recurring state with decision node. and result was in milliseconds which converted to integer and succeeded to take decision based on queue time.

     ToInt(DateTimeDiff(GetCurrentDateTimeUtc(),Flow.StartDateTimeUtc))>xxxx

    Best Regards,



    ------------------------------
    Tibin Thomas
    ------------------------------