Legacy Dev Forum Posts

 View Only

Sign Up

Variable to set current date by default on the Date/time component of the Script

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

    Posted 06-05-2025 19:09

    Mostafa_OUDDERHEM | 2018-11-15 10:16:50 UTC | #1

    Hi,

    We have configured a Script with Date/time component used for scheduling a callback during outbound campaing calls 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'm able to get it work with inbound call (through Architect) with the expression: Append(Split(ToString(GetCurrentDateTimeUtc()), ".")[0], "-0400")

    But I didn't find a way to get it work for an outbound campaign (we don't use Architect for outbound calls)

    Any idea ?

    Thank you in advance


    tim.smith | 2018-11-15 16:40:01 UTC | #2

    The date component supports an initial value:

    Under Value , select a string variable. This binds the value an agent selects using the date component to the variable. When an agent selects a date, the bound variable stores that date. Conversely, if the bound variable’s value is set before the page is displayed, then the component displays the current value of that variable.

    There may be a way to initialize that string variable to one of the built in variables, like Scripter.Agent Call Start Time. If you can't work it out to initialize it, you could at least use a button action to set it.


    Mostafa_OUDDERHEM | 2018-11-16 07:12:57 UTC | #3

    Thank you Tim for the reply, but I didn't find how to add ''expression" to this variable I used a string variable with "base" type and not dynamic, the only field I have to write in that variable is "by default value" but it didn't work

    Thank you


    Mostafa_OUDDERHEM | 2018-11-16 09:35:47 UTC | #4

    It is ok Tim, I found it now, we should create action and point to this variable with "Scripter.Agent Call Sart time"

    I test it and it works fine now

    Many thanks


    system | 2018-12-17 09:35:53 UTC | #5

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 3988