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