I want to create catalog task after 30 or 60 or 90 or 180 days timer so how can i achieve this please share the code any one

shashidher1
Tera Contributor

I want to create catalog task after 30 or 60 or 90 or 180 days timer so how can i achieve this please share the  code any one 

below code am using but its not working:

// Set 'answer' to the number of seconds this timer should wait
var gdt = current.variables.EU26b;
if (gdt ==1) {
answer =86400;
} else if (gdt ==60) {
answer =5184000;
} else if (gdt ==90) {
answer =7776000;
} else {

answer =15552000;
}

6 REPLIES 6

@shashidher 

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

Regards
Ankur

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

@shashidher 

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

Regards
Ankur

 

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