Skip to main content The Trailblazer Community will be unavailable from 2/1/2025 to 2/2/2025. Please plan your activities accordingly.
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?

 
4 answers
  1. Apr 7, 2015, 12:07 AM
    I think you need to follow this order

    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.
Loading
0/9000