You need to sign in to do that
Don't have an account?
SFDC_BigDog
many to many for Bulk records
I have created two custom objects (A and B)and a junction object(AB). i.e. Both A and B have Many to Many relationship. Now I need to insert 5000 records. How can I automatically populate the relation in Junction object. DO I have to write any trigger or Do I have to do Manually mapping the records?
1) Insert the records in Object A
2) Insert the records in Object B
3) Create a new csv file to have the ids from both Object A and B by using the success result (from above 2 operations)
4) Insert into object AB using this new CSV file.
All Answers
1) Insert the records in Object A
2) Insert the records in Object B
3) Create a new csv file to have the ids from both Object A and B by using the success result (from above 2 operations)
4) Insert into object AB using this new CSV file.
Thank you for the prompt reply. I have a doubt. Do I have to take all the ids from the two insert operations and do I have to insert into junction obect.?