Saasli / saasli-backend

Documentation
https://saasli.github.io/docs/
0 stars 0 forks source link

[Contact] Contact is attempted to be created if Account doesn't exist #45

Closed godd9170 closed 7 years ago

godd9170 commented 7 years ago

A Malformed query...

Malformed request https://na24.salesforce.com/services/data/v29.0/query/?q=SELECT++Id+FROM+Contact+WHERE+LastName+%3D+%27Hanks%27+AND+AccountId+%3D+%27None%27++LIMIT+1. Response content: [{u'errorCode': u'INVALID_QUERY_FILTER_OPERATOR', u'message': u\"\\nContact WHERE LastName = 'Hanks' AND AccountId = 'None' LIMIT 1\\n ^\\nERROR at Row:1:Column:54\\ninvalid ID field: None\"}]"

...presents itself when we try and make a Contact when no account was matched. We really shouldn't even try to find a contact if there isn't an account. Make sure that we report the shortcoming back to the requester if we can't get an account on the contact endpoint.