Using GlideDateTime in Action Script step

Community Alums
Not applicable

Hi,

 

Requirement is to do some operation based on date & time in Action Script. Issue is that I am getting no value against that outputs "todayDate" variable (Expecting the current datetime). PFA for Action Configurations.

 

I am trying to get the current date time from output.

 

Action Configuration:

NandhakumarAp1_2-1694066157144.png

 

NandhakumarAp1_3-1694066174343.png

 

NandhakumarAp1_4-1694066211017.png

 

Test result:

NandhakumarAp1_5-1694066342547.png

 

NandhakumarAp1_6-1694066371469.png

 

 

1 REPLY 1

Ankur Bawiskar
Tera Patron
Tera Patron

@Community Alums 

try to use this

outputs.todayDate = gdt.getValue();

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader