+ Start a Discussion

Help on delete trigger!

 From all the records present of a custom object , there will always be only one record which has most recent flag(checkbox) set as true. Now I Want to write a trigger which ckecks that,  if the current which is deleted had most recent flag set as true, if yes then update the flag on  next most recent record (currently  present)Help on delete to set as true.