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
Jim MontgomeryJim Montgomery 

copy related list data

I have a custom object "Inventory", that has  a master detil relationship with the account object.
I need to be able to copy all of the related Inventory records to a custon object that has a master detail relationship to case, when the Account lookup is populated on the case reocrd.
Suresh Kumar Arjunan1Suresh Kumar Arjunan1
I would evaluate to use same inventory object to be a child to case object as well (if possible) as a first step instead of creating a new custom object and duplicating records. If your business use case is to go with new custom object, then i would create an after apex trigger in case object to copy child records.