Genesys Cloud CX

 View Only
Discussion Thread View
  • 1.  Call Rule- Update Contact Column: Setas Current Timestamp

    Posted 08-01-2017 12:06

    Hello,

     

    If we create this Call Rule action for an outbound campaign:

     

    Update Contact Column: Set as Current Timestamp

     

     

    We see that the Timestamp that is added to the contact list is GMT (Greenwich Mean Time).

     

    Is it possible to have a timestamp added which displays the CEST (Central European Standard Time) time ?



  • 2.  RE: Call Rule- Update Contact Column: Setas Current Timestamp

    Posted 08-03-2017 20:36

    Hello,

    We're a few days further, so I've managed to implement a work-around for displaying the wanted time format.

     

    First of all, the timestamp option provided in the call rules can't be changed.

     

    So, to have a custom time format we use the script variables /actions.

     

    The built-in variable "Scripter. Customer Call Start Time" represents the beginning of the interaction.

    It is formatted depending on the location of the PureCloud Agent who treats the call.

    The timestamp contains some charachters showing the difference between your time and the GMT (e.g. +02.00).

    But you can use "substr" method to cut off that part.

    E.g.

    Text Expression

    02/08/2017 11:43:00 (+02.00) --> substr({{Scripter. Customer Call Start Time}},0,19)

    ------------

     

    Callbacks scheduled in a script have a different time format: 2017-08-02T20:09:43.734Z

     

    You can cut the timestamp in variables:

    callbackYear = substr({{callbackDateRaw}},0,4)

    callbackMonth = substr({{callbackDateRaw}},5,2)

    callbackDay = substr({{callbackDateRaw}},8,2)

    callbackHour = substr({{callbackDateRaw}},11,2)

    callbackMinute = substr({{callbackDateRaw}},14,2)

     

    And then concatenate them into a new variable (to write in the contact list or to display in the script):

    {{callbackDay}}/{{callbackMonth}}/{{callbackYear}} {{callbackHour}}:{{callbackMinutes}}

     

    This results in

    02/08/2017 20:09