I have tried to upsert an account with ShippingAddress using simple salesforce However, I am getting the error:
[{u'errorCode': u'JSON_PARSER_ERROR', u'message': u'Cannot deserialize instance of ShippingAddress from VALUE_STRING value abc or request may be missing a required field at [line:1, column:31]'}]
Below is my query.
sf.Account.upsert(
'Custom_Id__c/abc123',
{
'Name': 'abc',
'RecordTypeId': '0121U000000G51AbC',
'ShippingAddress': {
'City': 'abc',
'Country': 'USA',
'Street': 'Town Hall',
'CountryCode': None,
'PostalCode': None,
'State': None,
'StateCode': None,
'Accuracy': None,
'Latitude': None,
'Longitude': None,
}
},
Any idea on how I can upsert shipping address properly using simple salesforce?
ShippingCity
,ShippingStreet
, etc.Cannot deserialize instance of ShippingAddress from VALUE_NULL value null or request may be missing a required field at [line:1, column:43]'}
ShippingAddress
attribute at all. Just the individual field names and values.