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
Shalini PurushothamanShalini Purushothaman 

Automatically create child object records on save of Parent record

I have a scenario where i want 6 records of the child object created with different child object types ( Type is a field in the child object) on the save of the parent object. What is the simplest way to do it?

Thanks
Shalini
BalajiRanganathanBalajiRanganathan
Easiest way would be using the new Process Builder. Else you have to write the apex code to achieve the requirement.

https://help.salesforce.com/HTViewHelpDoc?id=process_overview.htm
Shalini PurushothamanShalini Purushothaman
Is there any sample code you can share?