function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Westec Intelligent Surv.Westec Intelligent Surv. 

Upserting a Case - INVALID_FIELD on Comments QueryResult

I'm using the standard Case object (we have some custom fields but that doesn't appear to be the problem). The Case has a linked subquery to its Comments, replicated in the SOAP API as CaseComments. My test case for upserting records is to query() for one by case number, change something, and upsert that record again. When I do so, I get an INVALID_FIELD error stating that CaseComments doesn't exist on the Case table in the cloud. Of course it doesn't exist, and the API should know better. Or maybe I'm not telling it something. Help?

 

UPDATE: tried setting the property to null; didn't work. The error in that case is "INVALID_TYPE: Must send a concrete entity type."