function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Deepika GhoseDeepika Ghose 

how to achieve update functonality in trigger where we have event after update?Will it update the record twice?

Leo10Leo10
Hi,
It will update recursively. So, you have to set a flag variable. once the trigger is fired, change the value of flag and do some value check in if condition.
the code will be like this
string flag=true;
if (Trigger.isupdate)
{
if (flag==true)
{
<update event>
}
flag==false
}

Thank you