In Servicenow ATF whenever i run the ATF by default i want to set the date as today's date

kranthi2
Tera Expert

Hi,

In Servicenow ATF whenever i run the ATF by default i want to set the date as today's date.

kranthi2_0-1714810266882.png

In the above screenshot if i run i am putting the date but if i run the same ATF after 10 days it will get error because whenever i run the ATF i want to put the today's date.

If any possibility please help me out on the same.

 

Thanks,

 

 

1 ACCEPTED SOLUTION

@kranthi2 

 

Sure.

Open your step 7 Set Field value.

In the Alarm start field write this javascript code.

javascript:gs.daysAgo(-10)

 

Regards

Shaqeel


***********************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.

***********************************************************************************************************************





Regards

Shaqeel

View solution in original post

5 REPLIES 5

@kranthi2 

 

Sure.

Open your step 7 Set Field value.

In the Alarm start field write this javascript code.

javascript:gs.daysAgo(-10)

 

Regards

Shaqeel


***********************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.

***********************************************************************************************************************





Regards

Shaqeel