attempting to use undefined input = 'current'

Community Alums
Not applicable

Hi,

I am facing the error when i am using this code for How to add 5 business days using flow designer? Kindly help.

 

var contactDate = new GlideDateTime(fd_data.trigger.current.end_date_time);
var days = 5;
//assuming there are 8 business hours
days = days*8;
var dur = new GlideDuration(60 * 60 * 1000 * days);
var schedule = new GlideSchedule('090eecae0a0a0b260077e1dfa71da828'); //put your schedule sys_id here which can be 9 to 6 or 8 to 5 schedule which can be found in cmn_schedule table
return schedule.add(contactDate, dur);

 

Regards

Suman P.

1 REPLY 1

Saurabh Gupta
Kilo Patron
Kilo Patron

Hi,

Check if below line of code is working-

fd_data.trigger.current.end_date_time

 


Thanks and Regards,

Saurabh Gupta