You need to sign in to do that
Don't have an account?

Create Child Object records when Parent Object record is created
Hi All,
Can any one help me to find the best way to accomplish this requirement?
When a parent Object record is created I have to populate 5 child object records. By using Apex trigger I can do this or I have to develop a VF page? Please guide me on this. Thanks in advance!!!
Can any one help me to find the best way to accomplish this requirement?
When a parent Object record is created I have to populate 5 child object records. By using Apex trigger I can do this or I have to develop a VF page? Please guide me on this. Thanks in advance!!!
Hi,
You will have to write a trigger. Here's an example for creating 5 records in the child object.
obj_1__c is the parent and obj_2__c is the child object
Please mark this as the answer if this solves your issue
Thanks