[SalesForce] MALFORMED_SEARCH error with SOQL query in C# application

when I run this SOQL query via the Developer Console it works…

SELECT Id FROM Event WHERE Subject LIKE 'Order%Created'

or

SELECT Id FROM Event WHERE (Subject LIKE 'Order%Created')

But when I put this query into my C# application I get a "MALFORMED_SEARCH: No search term found. The search term must be enclosed in braces."

I've tried everything I can think of and reviewed all the available documentation that I could track down to no avail… What exactly is the SalesForce API expecting in this case??
remove signature

Best Answer

You haven't posted your code, but based on the error message it sounds like you're passing your SOQL query to the search function, when you should be passing it to the query function.

Related Topic