Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Populate current date value in Flow action Input vallue

ARAVINDA11
Tera Contributor

@Ankur Bawiskar  @Community Alums  @Sohail Khilji  

 

verify the screenshot & help how to autopopulate current date value

Populate current date value in Flow action Input vallue

ARAVINDA11_0-1715855806015.png

 

2 REPLIES 2

Sohail Khilji
Kilo Patron

Hi @ARAVINDA11 ,

 

Step1 : click on the script icon which is highilited, 

 

SohailKhilji_0-1715855967723.png

 

Step2: enter this 2 line of script

SohailKhilji_1-1715856015123.png

 

If you need date and time then use the above close else if you need only date then use 

 

var now = new GlideDate();
return now.getDisplayValue():

☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect

Community Alums
Not applicable

Hi @ARAVINDA11 ,

You can use in scripting part of flow designer and use GlideDateTime Api it will work there.

 

for example 

var dt = new GlideDateTime();//Gives current date

 

Please mark my answer correct and helpful if this works for you

Thanks and Regards 

Sarthak