Quantcast
Viewing all articles
Browse latest Browse all 2504

ROQL Query deep object by id.

Topic by Jeroen Vorsselman

Content

I've got the following query:

SELECT Incident FROM Incident I WHERE I.PrimaryContact.Contact.ID.id = 173455 AND I.PrimaryContact.Contact.ID.idSpecified = 1;

The problem here is that this query does not return anything but instead throws the error "Selected column is not an object: ID". The RNObject instance has a instantiated PrimaryContact property with each field in the query populated. But yes, the Incident ID is empty.

My approach might be wrong; I have a background with Entity Framework and I tried to create something similar that generates ROQL. So I use Expressions to create this query. Is it possible to return an Incident based on the value of a child object, as described in the query? If so, how?

Version

15.11

Code Block


Viewing all articles
Browse latest Browse all 2504

Trending Articles