Worknotes getting added as 'Created undefined' in hr task and hr case

susmitha17
Giga Guru

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

7 REPLIES 7

Hello @JeremyHoffman 

Have you resolved this issue? I am facing same issue.

 

Any help would be greatly appreciated!

Please mark correct/helpful if this helps you!

@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

Akash4
Kilo Sage
Kilo Sage

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!

 

Regards, Akash
If my response proves useful, please mark it "Accept as Solution" and "Helpful". This action benefits both the community and me.