I have a Salesforce project in which I will be automatically popualating custom SObjects from a Java app. This will be done by pulling data down from a database, parsing it (including a JSON payload), then pushing it to Salesforce to populate the objects.
I am having trouble figuring out how to ensure Master-Detail relationships get mapped correctly. I have one object (let's call it "report") which must be mapped to one or more instances of another object (let's call it "product")
To achieve this one to many relationship, I have a junction object. The junction object needs to be mapped to one report object record, and one or more product object records. Therefore, said junction object has a Master-Detail relationship to both the report and product objects.
What data does Salesforce need to make sure it gets mapped correctly? A record ID? Something else? It is important that the correct associations are made between a report and its associated products.