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

QueryObject by value of GenericField (2 Comments)

$
0
0

Topic by Preben Asmussen

I have created a Contact with a GenericField = myGenericField ->

<n0:RNObjects xsi:type="n1:Contact">
<n2:ID id="103"/>
<n2:LookupName>*** XXXXXX</n2:LookupName>
<n2:CreatedTime>2014-07-08T06:27:29.000Z</n2:CreatedTime>
<n2:UpdatedTime>2014-07-08T06:59:14.000Z</n2:UpdatedTime>
<n1:ContactType>
<n2:ID id="2"/>
<n2:Name>Private</n2:Name>
</n1:ContactType>
<n1:CRMModules>
<n1:Marketing>true</n1:Marketing>
<n1:Sales>true</n1:Sales>
<n1:Service>true</n1:Service>
</n1:CRMModules>
<n1:CustomFields xsi:type="n3:GenericObject">
<n3:ObjectType>
<n3:Namespace/>
<n3:TypeName>ContactCustomFields</n3:TypeName>
</n3:ObjectType>
<n3:GenericFields name="c" dataType="OBJECT">
<n3:DataValue>
<n3:ObjectValue xsi:type="n3:GenericObject">
<n3:ObjectType>
<n3:Namespace/>
<n3:TypeName>ContactCustomFieldsc</n3:TypeName>
</n3:ObjectType>
<n3:GenericFields name="myGenericField" dataType="STRING">
<n3:DataValue>
<n3:StringValue>12333333</n3:StringValue>
</n3:DataValue>
</n3:GenericFields>
</n3:ObjectValue>
</n3:DataValue>
</n3:GenericFields>
</n1:CustomFields>
<n1:Disabled>false</n1:Disabled>
<n1:Name>
<n1:First>***</n1:First>
<n1:Last>XXXXXXX</n1:Last>
</n1:Name>
.....
</n0:RNObjects>
 
Now I want to query the Contact by the value of myGenericField, but I cant get the query syntax right.
I tried with 
 
String queryString = "SELECT C FROM Contact C WHERE contact.c$myGenericField=12333333";
 
but the QueryObjects method returns an fault = <n1:exceptionMessage>Non-existant column: &apos;c$myGenericField&apos;</n1:exceptionMessage>
 
Is it possible to query by a value of a generic field ??
 

Viewing all articles
Browse latest Browse all 2504

Trending Articles