Help
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Work Notes duplicate entry in Activty Log

test54212131251
Tera Contributor

Hi,

We have a requirement that the work notes provided by the Fulfiller in the Catalog Task should be reflected in the requested item's activity log.

So we created a business rule that updates the requested item's comments with the work notes so that it would reflect in the activity log.

However, updating the requested item's activity log reflects on the catalog task' activity log thus duplicating the comment in the activity log of the catalog task.

Here's the business rule code that runs on before:

find_real_file.png

I've tried adding current.work_notes = ''; in the business rule...

Here's a sample output:

find_real_file.png

Do you guys recommend anything to resolve this issue?

1 ACCEPTED SOLUTION

sumeet_n
Kilo Guru

I would have done something like this. This BR is async and insert, update checked.



find_real_file.png


View solution in original post

18 REPLIES 18

sumeet_n
Kilo Guru

Try doing the same in async BR. Let me know if it works.


Hi Sumeet,



Upon trying your recommendation, it seems that our work notes did not reflect the changes anymore


Oh I am sorry, i missed the query part. Check the query of your gliderecord again.



gr.addQuery('sys_id', current.sys_id);


You are writing this BR on sc_request table right?