I use the following query to get the data, but i also want to receive more fields from the "soco__Volunteer_Assignment__c" object.
SELECT+FIELDS(ALL),Account.Name,Account.Id+FROM+Contact+WHERE+Id+IN+(SELECT+soco__Contact__c+FROM+soco__Volunteer_Assignment__c+WHERE+soco__Status__c='Active'+LIMIT+2+OFFSET+0
How do I receive more fields from this object?
SELECT+FIELDS(ALL),Account.Name,Account.Id+FROM+Contact+WHERE+Id+IN+(SELECT+soco__Contact__c,soco__End_Date__c+FROM+soco__Volunteer_Assignment__c+WHERE+soco__Status__c='Active'+LIMIT+2+OFFSET+0
placing the fieldname "soco__End_Date__c" in the second select query will receive the folowing error message:
[
{
"message": "\nWHERE Id IN (SELECT soco__Contact__c,soco__End_Date__c FROM soco__Volunteer_Assignment__c\n ^\nERROR at Row:1:Column:321\nunexpected token: ,",
"errorCode": "MALFORMED_QUERY"
}
]
Id
only receives the ID values, not an objectsoco__Volunteer_Assignment__c
.[community]
badge if you are asking a question related to theSalesforce Community Cloud
feature (also calledExperience Cloud
).