Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Variable to set current date by default on the Date/time component of Script

    Posted 09-05-2018 03:47
    No replies, thread closed.
    Hi,

    We have configured a Script with Date/time component used for scheduling a callback
    Customer want that the current date be selected by default on the Date/time component of the Script when it appears to the agent, then he can change manually the date as he need

    I configured a variable as input on the Architect as ''DayofWeek(GetCurrentDateTimeUtc())'', but still I have Date/time empty until click on it to choose a date

    is this possible to show a current date automatically before clicking on the Date/time of the Script ?

    Thank you in advance


  • 2.  RE: Variable to set current date by default on the Date/time component of Script

    Posted 09-05-2018 11:50
    No replies, thread closed.
    DayOfWeek returns an integer from 1-7, where 1 = Sunday and 7 = Saturday.  Scripter is expected a value in the format 2017-08-07T00:00:00-0400.  Use this expression in architect:Append(Split(ToString(GetCurrentDateTimeUtc()), ".")[0], "-0400")Change to the appropriate timezone offset for your location.

    ------------------------------
    Melissa Bailey
    Genesys - Employees
    ------------------------------



  • 3.  RE: Variable to set current date by default on the Date/time component of Script

    Posted 09-06-2018 02:40
    No replies, thread closed.
    Thank you Melissa, it works fine now

    I appreciate your help

    Have a good day


  • 4.  RE: Variable to set current date by default on the Date/time component of Script

    Posted 09-06-2018 03:56
    No replies, thread closed.
    Hi Melissa, it works,

    Just for the timezone, it select anyone with +0200 that we have entered (Africa,/..., Europe/;;;), can we force  specific timezone (for exampe: Europe/London) ?

    Thank you


  • 5.  RE: Variable to set current date by default on the Date/time component of Script

    Posted 09-06-2018 10:08
    No replies, thread closed.
    Sorry, no there is no way to force it to pick a specific timezone.  It just displays the 1st one that matches the offset.

    ------------------------------
    Melissa Bailey
    Genesys - Employees
    ------------------------------



  • 6.  RE: Variable to set current date by default on the Date/time component of Script

    Posted 09-06-2018 10:42
    No replies, thread closed.
    ok thank you, we will stay on this solution

    Have a good day