attempting to use undefined input = 'current'
Community Alums
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2023 06:58 AM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2023 07:08 AM
Hi,
Check if below line of code is working-
fd_data.trigger.current.end_date_time
Thanks and Regards,
Saurabh Gupta