Copy Worknotes from HR Case to HR Task copying Duplicate Worknotes in HR Case

Tahzeeb
Giga Expert

Hi Team,

 

I am facing below Issue

I have requirement to copy all the worknotes from HR Case to HR Task and vice versa.

 

While this is working using journel entry(-1), but every time a worknote is added to the HR Case all the old worknotes in HR Case are getting copied to HR Case also.

kindly suggest

1 ACCEPTED SOLUTION

Community Alums
Not applicable

Hi Tahzeeb,

 

I have tried a mock up on my PDI and is working as expected. I have attached my design. Can you give it a try and let me know if you have any questions/issues.

View solution in original post

16 REPLIES 16

Community Alums
Not applicable

Hi Tahzeeb,

 

Are you saying when you add a new work notes to a HR case, the latest work notes gets copied to HR Case  again or all of the HR case work notes gets copied?

Can you post a screenshot?

Bhairavi Gandhi
ServiceNow Employee
ServiceNow Employee

Hi Tahzeeb,

I think, whenever you might be updating your latest work notes, you are appending with the older ones too.

Can you share your script/BR?

Regards,

BG

Prasanna Krish3
Kilo Contributor

Hi Tahzeeb,

Can you try this in your business rule

gr.work_notes.setJournalEntry(current.work_notes);

Thanks,

Krishna

Tahzeeb
Giga Expert

This is Before->Insert Rule->on Task form

find_real_file.png