You need to sign in to do that
Don't have an account?
Upserting a Custom object with child object that has Master-Detail Relationship
I have a custom object called "Log_Entry__c" and a child object that has a Master-Detail Relationship called "Details__c". I've tried a handful of different ways, but I haven't been successfully create this child object on "Log_Entry__c". I've tried assigning the child object to the "Details", "DetailsId", "Details__r", and "Details__c" keys in the "Log_Entry__c" object. It has never worked, and the error I keep getting is this:
"No such column 'Details__c' on sobject of type Log_Entry__c"
Does anyone have any guidance for how to accomplish this? I'v also tried creating a "Details__c" object where the Master-Detail field on it (called "Log") is set to the "Log_Entry__c" id that I'm trying to link it with - but this was not successful either.
I'm writing this in Python using the simple-salesforce library (https://github.com/simple-salesforce/simple-salesforce)
Thank you in advance, any advice will help! :)
Usually when you refer child object from parent you have to call in this way
Log_Entry__c.Details__r
Please refer below link.
http://salesforce.stackexchange.com/questions/13548/insert-list-of-children-from-parent-object
Hope this helps you!
If this helps you mark it as solved.
Thanks and Regards
Sandhya