Tuesday 5 December 2017

How to attach the Start time of a Call in Genesys Routing strategy

It’s a good idea to have the start time of a call as attach data travel with the call for any further treatment or decision making.
For this example, we will be using three variables
VariableType
_dateString
_timeString
_startTimeString


image

Routing strategy blocks will look like this
image

Let’s Start assigning values to the variables Date and Time
For Date there is an inbuilt function that returns date in the Format MM/DD/YYYY
image

Similarly lets assign value to the Time variable, there is an inbuilt function for this as well.
Format for time is in 24 hour format hh:mm

image

The last block is to concatenate the date and time into one, this puts us at ease if we are interacting with external systems or database.
image

image


The code for Concatenation is :

Cat[_date,' ',_time]




Looking at the logs we can see the variable _startTime has the value of both Date and Time as intended.