how to do this with fetchXML??
I mean the CASE WHEN THEN ...
SELECT DISTINCT contactid, fullname, birthdate, address1_line1, address1_postalcode, CASE WHEN contactid IN @family THEN 'true' ELSE 'false' END AS family, CASE WHEN contactid IN @same_address THEN 'true' ELSE 'false' END AS same_address, CASE WHEN contactid IN @kundeid THEN 'true' ELSE 'false' END AS contact_started_from FROM FilteredContact WHERE (contactid IN (@choose_contacts_to_show)) ORDER BY fullname
*This post is locked for comments