To Populate Time Worked field on HR Case form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-17-2018 07:56 AM
We would like for the "Time Worked" field to equal the "Resolved Date" minus the "Created" date.
I am aware of the "Time Worked" (OOB) field which is available on the HR case form and it is auto calculated when ever the user opens the form and update it.But can we use the same field for calculating resolved date minus created date?
and if yes, how can we achieve date?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-17-2018 10:38 AM
HR Case has a business rule called Update Durations, which calls a script include called hr_Case. Within that script include is a function getCalendarDuration
STRONGLY recommend that you do not edit this function, nor populate the calendar_duration field directly. STRONGLY recommend you build your own duration field, your own Update Duration business rule that calls your own parallel version of the hr_case script include.
SN will be updating these objects regularly in the future, and you can't afford a skip on an upgrade because you modified them directly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-17-2018 10:07 PM
Thanks Robert for the help . I'll definitely create a new field and populate the values.