How to calculate the Business Duration on RITM ?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2024 12:42 AM
Hi,
How to calculate the Business Duration on RITM for newly created requests and also for Old records as well I have written the BR simlilar to mark_closed OOB BR but it's giving the wrong value below is my script
When to run: before (insert or update) and order 100.
Condition -- State is one of Closed Complete, Closed Incomplete and Closed Skipped.
Script:
(function executeRule(current, previous /*null when async*/ ) {
var opened = current.opened_at.getValue();
var closed = current.closed_at.getValue();
if (current.business_duration.nil())
current.business_duration = gs.calDateDiff(opened, closed, false); // Business Duration
if (current.calendar_duration.nil())
current.calendar_duration = gs.dateDiff(opened, closed, false); // Duration
}
)(current, previous);
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2024 03:36 AM
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2025 06:34 AM
Hello All,
Any solutions found for this issue? i'm also facing same issue in our instance.
Thanks,