+ Start a Discussion
Rahma__cRahma__c 

Insert records from external system

Hi,
I have 2 custom objects, one stroring list of books with details of
author , pages etc and one other custom objects linking a contact 
to a book
when inserting a new record assignig a book to a contact in second
custom object,  I should reference the salesforce Id of the book 
and the salesforce id of the contact right ? 
Best Answer chosen by Rahma__c
UC InnovationUC Innovation
Yes, in the custom object that  links the contact to a book, you would need to reference the Salesforce ID of the book and Salesforce ID of the contact, and assign them to the correct fields in the custom object that links the contact to a book.  Once these are assigned, the book and the contact should be correctly linked via the custom object.

All Answers

UC InnovationUC Innovation
Yes, in the custom object that  links the contact to a book, you would need to reference the Salesforce ID of the book and Salesforce ID of the contact, and assign them to the correct fields in the custom object that links the contact to a book.  Once these are assigned, the book and the contact should be correctly linked via the custom object.
This was selected as the best answer
Rahma__cRahma__c
Hi UC Innovation, I mentionned in the title that the records are inserted from an external system,
it is still the same answer right ?
UC InnovationUC Innovation
Yes, the approach would be the same if you are using SOAP, REST or Bulk API.