You need to sign in to do that
Don't have an account?
jqcoffey
Creating a detail item in a Master-Detail or Lookup Relationship
All,
I'm having a hard time trying to get a detail item in my master/detail relationship to insert correctly. I've populated the $WWW::Salesforce::Constants::TYPES object with my custom fields, but I still end up with this:
Unable to find a de-serializer for the type ID
It looks like the API won't allow the creation of detail objects (or insertion of any record that contains a tns:ID SOAP type).
Is that correct? Am I an idiot? Anyone have any clues?
Thanks,
Justin
I'm having a hard time trying to get a detail item in my master/detail relationship to insert correctly. I've populated the $WWW::Salesforce::Constants::TYPES object with my custom fields, but I still end up with this:
Unable to find a de-serializer for the type ID
It looks like the API won't allow the creation of detail objects (or insertion of any record that contains a tns:ID SOAP type).
Is that correct? Am I an idiot? Anyone have any clues?
Thanks,
Justin
Park
Perhaps some additional info would be useful.
I have to custom objects broadcasts__c (master), and broadcasts_stats__c (detail). I have a column in broadcasts_stats__c called "broadcast__c" which (I'm assuming) should have the Id from broadcasts__c.
In my code, I do (psuedo code):
Code:
This fails every time. I read the previous post about how I should put the Id of the parent object in the appropriate field (which I think I'm doing), but I was unclear on the latter portion of the post, "...but the item's Id field should not be included. As an example, when creating a Contact you supply the AccountId but not the Id."
Any further help would be greatly appreciated. This is driving me nuts.
Thanks,
Justin
-Justin