Skip to main content
May I just get a comment on following topic?

 

I have used SOQL to retreive list of Objects together with some chidren and grand children.

 

Now if I make changes to children or grand children this changes will not get pushed to DB after I call update on that list.

 

Why is this so since it complicates coding?

 

Is there some other function beside update() which might do this kind of recursive updating?
1 Antwort
  1. 29. Nov. 2012, 13:13
    It is depend what kind of field you expected be updated in parent, if roll-up summary, salesforce will automatically re-calculate it. But, for others, you need a trigger to update parent from a child.

     

    But, if you are using master-detail relationship, you can use cross-object workflow. 
0/9000