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
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?