adspace
Let’s say we have to update the same record in after trigger context. Is there any way or workaround?
Answer Posted / Sunita Tevatiya
To update the same record multiple times within an After Trigger, you can use a static variable to store the ID and compare it before updating the same record. However, be aware that this might lead to issues if your trigger is invoked in a loop. It's better to consider using Apex Queue (Batch Classes) or Future methods for processing multiple records.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers