Quantcast
Channel: Discussion Forum > Connect Data Services
Viewing all articles
Browse latest Browse all 2504

ROQL Query oddness (2 Comments)

$
0
0

Topic by Bryan Scarborough

Hello, 

 

I am having some issues with querying Organizations using ROQL in .NET.  We are using Nov 2012 RightNow.

QueryString = "SELECT Organization FROM Organization WHERE " + "Name LIKE \'%" + s + "%\';"; returns results when searching for "top" as the value for s

If I add to the query to be 

QueryString = "SELECT Organization FROM Organization WHERE " + "CustomFields.c.customer_number=" + s + " OR Name LIKE \'%" + s + "%\';";
 
If s = "top" it now returns no results even though it should still return the same results the first query did.  If s equals a valid numeric value then it does return a result.
 
I would prefer to not have to query the system twice, but I will if need me.  What am I missing here?
 
Also note that a previous person here used this same query successfully using PHP to make the soap calls.
 
Thanks

Viewing all articles
Browse latest Browse all 2504

Trending Articles