Remove recursion from Business rules Syncing fields between Case and related Task records

Mayur Kale1
Tera Contributor

We have two business rules which sync watchlist field between case and related task records. The trigger condition is when the watchlist changes for both the business rules one is on case table and the other is on Task table. And in the logic of these business rules we update the watchlist of the related task record or the case record which in turn call the other business rule. This is causing a recursion between the two business rules.I wanted to check how we can remove this recursion. I also wanted to check if anyone has implemented a solution for syncing common fields between case and related task records which don't go in a recursion.

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Mayur Kale1 

refer this link; it talks about syncing worknotes/comments and it handles how to avoid recursion.

add same logic in your BR

Script shared by Sravani

Sync'ing RITM and SCTASK work notes \ additional comments 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

View solution in original post

1 REPLY 1

Ankur Bawiskar
Tera Patron
Tera Patron

@Mayur Kale1 

refer this link; it talks about syncing worknotes/comments and it handles how to avoid recursion.

add same logic in your BR

Script shared by Sravani

Sync'ing RITM and SCTASK work notes \ additional comments 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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