Forum Discussion

swapnakonduru's avatar
swapnakonduru
New Contributor
6 years ago

how to parameterise the current system time in Load complete

Hi All,

 

Currently i am customizing the script for a batch job which will start running in the provided time period. In this request we are passing only the values for "hours" and "minutes" with an offset value. Please help in how to do the parameterise the hours and minutes with an offset value for minutes along with AM and PM values. PFB request parameters:

%5B%7B%22type%22%3A%22setvalue%22%2C%22targetId%22%3A%22mbadfe62b-tb%22%2C%22value%22%3A%226%3A50%20AM%22%2C%22requestType%22%3A%22SYNC%22%2C%22csrftokenholder%22%3A%229s2j8e88h8hatercto08vllsav%22%7D%2C%7B%22type%22%3A%22click%22%2C%22targetId%22%3A%22m6d23b003-pb%22%2C%22value%22%3A%22%22%2C%22requestType%22%3A%22SYNC%22%2C%22csrftokenholder%22%3A%229s2j8e88h8hatercto08vllsav%22%7D%5D

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3

    Hi,

     

    If you need just one value:

    -- Create a project variable of Current Date type and set its format specifier to 't ampm' (without quotes);

    -- Reference this variable in the body of request. For example, assuming that the variable was named as LTTime, request body in the request editor may look like this: {"value":"\vLTTime\v"}.

     

    If you need new value every time:

    -- Create project Data Generator variable of Date and Time type, set its format to HH:MM AM/PM and other properties as needed and reference the same way as above in the requests.

     

    See LoadComplete documentation for more information.

     

    Then you