Worknotes getting added as 'Created undefined' in hr task and hr case
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-19-2022 10:47 AM
Hi,
we have a activity with shows record producer,we are using record producer to update details instead of inserting.
Once record producer is submitted , worknotes is getting added as created undefined on hr task and hr case
How can we avoid updating these kind of worknotes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-25-2025 10:06 AM
Hello @JeremyHoffman
Have you resolved this issue? I am facing same issue.
Any help would be greatly appreciated!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-04-2025 05:15 AM - edited ‎04-04-2025 05:16 AM
@Unique45 In looking at our system, it appears that we have. I checked our HR Tasks and Cases and the "Created undefined" is not appearing. It stopped back in January. Two things happened during that time in our environment. We implemented a change to "Allow" about 20 or so Restricted Caller Access requests within the HR Suite of applications. Even though that change didn't appear to be related, it appears as though that might have resolved our issue. Maybe this is worth exploring on your end to see if you are in the same boat?
The other thing we did was upgrade to Xanadu.
Best,
Jeremy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-21-2024 12:43 PM
Hi Susmitha,
Guess the created_by is not required on HR Task (since the HR Task is already created and has sys_created_by stored in table)
The reason for worknotes being Undefined is system might not be able to identify createdBy once again. Try not to populate this field when you update the HR Task using Record Producer.
You can use in Record Producer script:
hrTask.autoSysFields(false); or
hrTask.setWorkflow(false); to avoid adding system fields
Incase you still need Updated by (system) field then you can add this line before updating:
if (gs.nil(hrTask.work_notes) === false) {
hrTask.work_notes = 'Record updated by ' + gs.getUserDisplayName(); //logged in user
}
Hope the above hint helps you to proceed further!
If my response proves useful, please mark it "Accept as Solution" and "Helpful". This action benefits both the community and me.