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

ROQL Query for a custom object (6 Comments)

$
0
0

Topic by Shellie Robertson

Content

I have the following query string to retrieve data from a custom object:

string queryString = "SELECT S_Contact.s_contact from S_Contact.s_contact WHERE S_Contact.s_contact.c_id = " + contactID + " AND S_Contact.s_contact.Status = 'Enabled'";

The query returns data when I leave off the AND clause...but when I add that in, it doesn't return an object, and I verified that the Status is set to "Enabled".  Does anyone see anything glaringly wrong with this?  When I change the operator for status to <>, it also returns the object.

Which leads me to my next question.  How do I retrieve the generic field data from the custom object?  I have created a GenericField array, but can only retrieve the name of the field and not the actual data.  Any help would be wonderful!  (This is my first add-in!)

Version

Nov 12

Code Block


Viewing all articles
Browse latest Browse all 2504

Trending Articles