field changes capturing twice in activity log

sivachandrasekh
Mega Contributor
In the activity log, I see that information of custom field changes such as "Requested for domain" is captured.
But in the activity log it is capturing twice and not sure what is the mistake .
 
When I'm updating the work notes it is capturing only one time.find_real_file.png
 
Can anyone let me know why it is capturing twice in activity log. Please see the highlighted red boxes in Screenshot and you can see requested for domain captured twice.
 
 
1 ACCEPTED SOLUTION

AbhishekGardade
Giga Sage

Hello Shiva,

Go to business rules on that table and check for condition 

find_real_file.png

1. If any BEFORE INSERT/UPDATE business Rule contains current.udpate(), then remove it from script.

2. If any AFTER INSERT/UPDATE business Rule contains current.udpate(), then add current.setWorkflow(false) in your script.

Please mark as Correct Answer/Helpful, if applicable.
Thanks!
Abhishek Gardade

Thank you,
Abhishek Gardade

View solution in original post

17 REPLIES 17

Great!!! Exact same thing i am telling you. Happy to help you.

Thanks,Abhishek

Thank you,
Abhishek Gardade

Hi Abhishek,

I'm facing the same issue. Will these changes on business rules cause any side effects? I hope it should not make any other changes in the system.Please confirm the same.,

 

Thanks,

Ankita Kolhe

AnirudhKumar
Mega Sage
Mega Sage

We faced a very similar problem.

There were 4 duplicate activity logs every time we updated a field on a table. 

We also verified that there were no 'Before' Business Rules with current.update();

 

And then we tried something new!

We found a few 'After' Update Business Rules that had current.update().

We made 2 changes to these:

- removed the current.update() line of code and

- converted the BRs to Before Update.

 

Voila!! There were no more duplicate logs 😉

And truth is there were 4 of these 'After' Business Rules containing current.update(), and that's the reason we had 4 duplicates!