How to use new "Define Variable" Since "Beta Define Variable" is not available

Hi All,

Hope you are doing great.

I want to use “Define Variable” for $.now() which will provide today’s date. This example will provide the user a week to complete the manual provisioning tasks in my workflow.

But in New “Define Variable” operator I am not getting below screen. Could you please help us how to use new “Define Variable” operator.

Agenda :
Step 1a – Define Variable (Due Date = 7 days + Today) : $.now() will provide today’s date. This example will provide the user a week to complete the manual provisioning tasks.

Step 1b – Define Variable (Due Date Substring) : The $.now() variable returns the date in ISO8601 format. This example sends the date part to ServiceNow in the MM/dd/yyyy format and drops the time string.

Regards,
Venu

Hey,

You could achieve this with current Define Variable operator as well.

  1. Add the $.now() as the attribute value which would give you the timestamp.
  2. Add the first Data Transform to add 7 DAYS in the current timestamp.
  3. Add the second Data Transform to convert the date in the MM/DD/YYYY format.

Screenshot:

HTH!

I am not getting option “$.now()” under Define Variable operator to select. Could you please let me know how to select that.

You could enter the value manually instead.

1 Like

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