PureEngage On-Premises

 View Only

Sign Up

  • 1.  CCPulse threshold using Time function

    Posted 02-08-2016 18:26
    Customer is looking to build a CCPulse threshold script based on the StatValue and Time of the day, say after 04:00pm.

    I tried the following VB script time function but it does not seems to work. Here is the script I tried:
    if Threshold.StatValue >= 5 and (Time()>"04:00:00 PM") then
    Threshold.Result = true
    else
    Threshold.Result = false
    end if

    Does anyone know if it is supported and if so, please let me know the correction?

    Thanks,
    Satish


  • 2.  RE: CCPulse threshold using Time function

    Posted 02-09-2016 20:12
    I think the isssue could be that your "04:00:00 PM" will be interpreted as a string.  You could try representing it as CDate or TimeValue("04:00:00 PM").
    Alternatively, if your only ever working in whole hours you could pull the hour as an integer from the current time by Hour(Time())>=16
     


  • 3.  RE: CCPulse threshold using Time function

    Posted 02-09-2016 22:24
    Thanks Jason. That works.