You need to sign in to do that
Don't have an account?
Jayesh Deo 2
insert bulk record practice
Write an apex program, to insert an Account Record, and 5 Related Contacts, and 4 Related Opportunities, and 2 Related Case records inside the object.
Account record(1)
Account record(1)
|
|_______contact records(5)
|
|_______Opportunity records(4)
|
|________Case records(2)
|_______contact records(5)
|
|_______Opportunity records(4)
|
|________Case records(2)
You can call this method insertRecords() to insert the records. The above class will insert a new Account record, five new Contact records related to the Account, four new Opportunity records related to the Account, and two new Case records related to the Account.