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
Dhilip DussaDhilip Dussa 

update record with child field using batch apex

Hey All,

I have Account and Contact objects with the custom field called Members(Text area long)

if I created list of contact record with Members fied inserting into Account Members fields with comma(,) its fine..

The requirement is by using batch apex need to update these fieds in Account Members with list of contact Member fieds with comma(,)

Thanks
Deepali KulshresthaDeepali Kulshrestha
Hi Dhilip,

I hope this link will help you out:
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/langCon_apex_dml_examples_insert_update.htm

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Deepali Kulshrestha