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
renurenu 

Trigger to update field on standard object

Hello
 
I am tring to update the field on the Account , by checking the condition
Every time a new record on custom object is created/updated/deleted i need to check a field in the custom object(the one creating now and the previous records) is true. If it is true then i need to update the Status field on the Account object to "xyz'.
 
if it is false then i need to update the Status field to 'abc'
 
Here i have written the code. but I am getting run time errors. Any ideas?????
 
Lot of times i am getting this exception

System.ListException: Duplicate id in list:



Message Edited by renu on 06-19-2008 11:13 AM

Message Edited by renu on 06-19-2008 11:15 AM
renurenu
I got the output. thanks for all that viewed my msg
NajoopNajoop

Hi,

I am new to Apex. Can you please share the resolution? I am getting a similar error. trigger gets compiled but gives system.listexception when testing.