- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2017 02:59 AM
How to validate start date should not be greater than end date using business rules
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2017 04:18 AM
Here is the example
You need to update the field names
if (gs.dateDiff(current.end_date.getDisplayValue(), current.start_date.getDisplayValue(), true) < 0)
return;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2017 03:03 AM
Hi,
Before insert you need to write BU.
if you need code let me know.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2017 03:09 AM
Hi,
There is OOB business rule, "Planned Start/End Date validation" in change_request table.
Taking a reference of this BR you can configure your own BR for any table.
Thanks,
Maddy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2017 03:09 AM
Hi Gomathy,
Please have a look at this thread. It might be helpful for you:
How to write a date validation script in server side?
I hope this helps.Please mark correct/helpful based on impact
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2017 03:34 AM
Using DateDiff() function I have to write business rule