I have 3 objects A, B and C. C is junction object between A and B. A and B contain import id. Now I want to connect both A and B on C using import Id from Data Loader. My requirement is I just want to add the import ids of both A and B object to excel sheet and want to insert record to C object. Is it possible? How can I achieve it? Or I need to go for trigger. Please guide me.

  • you can use data loader. Map them with id field and then insert the record. – Tushar Sharma Sep 19 '15 at 7:03
  • 1
    importId, Is it different from record Id ? – sf_user Sep 19 '15 at 12:00
  • Also, did these records come from a different system/org? – martin Sep 19 '15 at 12:14

It is possible and you don't need any trigger. If C is junction object, it should have lookup for both A and B objects (lets say lookup field ids are accountId and contactID). In excel, make sure to populate each row with accountId and contactId for the C object.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.