+ Start a Discussion
sundar s 14sundar s 14 

before insert before update

Hi
    I am updating the parent record after insert, after update from child using trigger , if i do before insert before update what will happen, 
i know that if insert fail or update fail we have to roll back other than this any other issue? please advise
thanks
soma
sales force 48sales force 48
Hi Sundar,

Aaparently to update the parent record we need to intially submit the child record to the database,
Once when the child record is commited to the database we can have privilage to update its parent record accordingly.
Make sure you will use the after insert or after update events .....

Regards,
Srikanth U
sundar s 14sundar s 14
Sri 
       You mean to say before commit we cant update the parent record?