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

last incident information for a contact. (3 Comments)

$
0
0

Topic by David Eggleston

Content

I am working in C# and using a ROQL statement.  I get a contact but then when I join to the incident table by the use of Contact.PrimaryContactIncidents.<FieldName>, I get multiple rows, since the individual has multiple incidents.  I wanted to get the last incident they were associated to.  It would be easy with SQL, just create a subquery to get the last incident date that the contact had and use that in the WHERE clause:  WHERE CREATED_DT = (Select max(created_dt) where contact_id = 'nn' and ....)

 

I want to keep the incident data extract in the same ROQL is possible.  Thanks in Advance, David

 

 

 

Version

August 2014 SP2 Build 113

Viewing all articles
Browse latest Browse all 2504

Trending Articles