Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

I need to set the due date for the approvers

Hazel3
Tera Contributor

Hi,

I need to set the due date for the approvers for one hour. The below script i have used.

var gdt = new GlideDateTime();  
 gdt.add(1 * 60 * 60 * 1000); 
var dueDateString = gdt.getValue(); 
return dueDateString;
But the due date field in the approver table is showing empty and after one hour is passed it is still waiting in the "Ask for approval" action
Hazel3_0-1736234372719.png

Kindly help on this.

8 REPLIES 8

@Hazel3 

is the log giving the correct value?

If yes then it should set

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

It is giving the value in the flow execution. But it is not setting the value in the approval record

Hazel3_0-1736240281560.png

@Hazel3 

check this link

Set dynamic relative due date in Ask for Approval action in flow designer 

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

Hazel3
Tera Contributor

Any update on the query?