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

Hi,

similar question asked previously which is already answered.

https://community.servicenow.com/community?id=community_question&sys_id=10a2bf8bdb201010414eeeb5ca96190e

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Community Alums
Not applicable

Hi Ankur, User is trying to achieve the other way round from HR task to HR Case without leading to a loop

Hi Shruthi,

okay got it; it seems 2 points are same and for 1 more point help is required.

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi,

I believe point 1 and point 2 is already answered in your question below;

https://community.servicenow.com/community?id=community_question&sys_id=10a2bf8bdb201010414eeeb5ca96190e

So for point 3 create after update BR on HR Task to update work notes to HR Case;

ensure you use setWorkflow(false) just before you update for both the after update business rules so that it doesn't end in loop

Please consider marking appropriate reply as Correct & 👍Helpful.

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Are you talking about OOTB BR "Validate Changes" or I need to create seperate BR