I have been trying to update a nested object using simple_salesforce
specifically been trying to update the Owner
field in a Case
object.
from simple_salesforce import Salesforce
sf = Salesforce(username = 'username',password = 'password',security_token='security_token', sandbox = False)
sf.Case.create({'Description':'stuff in description','Owner':'Owners User'})
Whenever I try to insert I get the following error:
Response content:
[{u'errorCode': u'INVALID_FIELD', u'message': u'The value provided for foreign key reference Owner is not a nested SObject'}]
Please any help would be appreciated.
I ran into this same error and it turns out you have to use the OwnerId
field and pass the Id of the owner.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With