can we set dynamic date(or current date) in date field in ATF ?

Trupti2
Kilo Expert

Hi,

I want to set start/end date dynamically in ATF? is this possible?

Regard,

Trupti

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Trupti,

Can you explain what is the meaning of dynamic date?

This is possible

the below worked for me

javascript: gs.daysAgo(-7)

screenshot below is for older example; when I run it sets date to 7 days in future i.e. 11th May

find_real_file.png

find_real_file.png

Regards
Ankur

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

View solution in original post

11 REPLIES 11

I seem to have problems with the date using Set Variable Values (SP) test step.  The date is not output to the screen, even though it seem to set it correctly.  Have you encountered this issue? 

I seem to have problems with the date using Set Variable Values (SP) test step.  The date is not output to the screen, even though it seem to set it correctly.  Have you encountered this issue? 

Hi,

I haven't seen that.

try to give some timeout for that set variable step of 5 seconds

Regards
Ankur

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

No luck, ServicePortal still thinks no date is entered and gives an error.  

@lana@sn 

Can you post a new question for this and tag me in that and share more details.

this post is answered one so it's better to raise new question

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