- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-15-2022 06:14 PM
I am using Flow Designer and need to update the Catalog item Request Item (RITM) due date to 5 days after the current date. I use the following script in flow designer and not able to get any date. Can someone provide expert advise to have the script to work correctly. Your guidance or expertise sharing will be appreciated.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-16-2022 07:02 AM
Hi,
Try the following in your script.
var gdt = new GlideDateTime(fd_data.trigger.current.due_date);
gdt.addDays(4);
return gdt;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-15-2022 06:58 PM
Hi,
Try relative operator in condition builder like
Due date is relative 5 days from now.
Please mark my response as correct answer or helpful if applicable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-16-2022 06:40 AM
Mahesh probably I was not clear with my question. I need to update the date in flow designer not in report builder.
Could you see if you can advise me on how to do that. Or maybe show me and example on how to change it in Flow Designer. I am relatively new to Flow designer. Your expert replied will be appreciated.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-16-2022 07:02 AM
Hi,
Try the following in your script.
var gdt = new GlideDateTime(fd_data.trigger.current.due_date);
gdt.addDays(4);
return gdt;