- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-22-2021 11:10 PM
Hi,
I have a requirement to auto populate due date field +3 business days with current date.
Can anyone help me to fix the issue?
I tried to add before insert BR but its not working as expected.
var sd = new GlideDateTime(gs.nowDateTime());
sd.addDays(3);
current.due_date=sd;
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-22-2021 11:40 PM
If you want to show date after 3 days when user open new form (to create new record ) then you can set default value at dictionary level by overriding dictionary of due_date field.
Thanks,
Anil Lande
Thanks
Anil Lande

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-22-2021 11:18 PM
Try below Business rule.
var sd = new GlideDateTime();
sd.addDays(3);
current.due_date=sd;
Hope it helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-22-2021 11:38 PM
Its not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-22-2021 11:18 PM
Hi Bala,
Try with below code once
var sd = new GlideDateTime();
sd.addDays(3);
current.due_date=sd;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-22-2021 11:38 PM
Its not working