How to populate sc_task's due date via flow designer script.

Chhavi Dixit
Tera Contributor

HI All,

 

How to populate sc_task's due date via flow designer script, due date should be add 2 days in sys_created_on.

 

Thanks in advance! 🙂

 

Thanks!

Chhavi Agnihotri

2 REPLIES 2

Jake Sadler
Kilo Sage

Hi,

 

This should work but make sure to adjust for your field names.

 

var createdOn = new GlideDateTime(fd_data.trigger.sys_created_on);
createdOn.addDaysUTC(2);

return createdOn;

 

Thanks

 

Jake

Rohit99
Mega Sage

Hi @Chhavi Dixit,

You can also achieve mentioned requirement by using Wait for Condition Action and by applying triggering condition  as sc_task created and by adding custom condition. 

 

Please mark my response as correct and helpful if it helped solved your question.

 

Thanks,

Rohit Suryawanshi