SalesForce Bulk API: Relationship between custom object and Account -
i have custom object in salesforce called deal, child of built-in account object. trying use bulk xml api upload batch of records, can't seem figure out how specify relationship correctly. documentation says should reference custom object's relationships so:
<relationship__r> <sobject> <some_indexed_field>#####</some_indexed_field> </sobject> </relationship__r>
if have idea how specify relationship account object custom object i'd appreciate it.
added
the deal object has following 2 fields:
- dealid
- api name - dealid__c
- data type - text(255)(external id)(unique case sensitive)
- account
- api name - account__c
- data type - master-detail(account)
request xml:
<account__r>
<sobject>
<id>0013000000kcwpfaae</id>
</sobject>
</account__r>
result xml:
<result>
<errors>
<message>field name provided, id not external id or indexed field account</message>
<statuscode>invalid_field</statuscode>
</errors>
<success>false</success>
<created>false</created>
</result>
there appears bug , have strip out whitespace , newlines when dealing reference objects.
check out:
http://success.salesforce.com/ideaview?id=08730000000itq7aao
Comments
Post a Comment