how to set due date based on date variable on catalog item?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2014 10:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2014 10:59 AM
Hi Nicholas,
If you want to have the REQ completed before the new Joinee joins, you can set the Start Date value as the Due Date value. Or am i missing any requirement of yours here. I suppose, the Start Date is the Date when the new User joins.
Write this script on the sc_req_item table:-
var daysStr = current.cat_item.delivery_time.getDisplayValue();
var days = daysStr.split(' ')[0];
current.due_date.setValue(gs.daysAgo(-1 * days));
Thanks,
Subhajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2015 06:11 AM
Hi subhajit,
Please answer my query mentioned in below link-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2014 11:13 AM
Hi Nicholas,
What I understand is, you want to populate the due_date field based on the start_date field in which case you can use the below script in a before update business rule:-
var gdt = current.start_date.getGlideObject();
current.due_date=gdt.addDays(30); //30 days to complete Newjoinees onboarding
Hope this helps
Thanks & Regards,
Hari
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2015 06:11 AM
Hi Nicholas,
Please answer my query mentioned in below link-