SQL IN equivalent in CAML
Is there a "nice" way to create a CAML query for SharePoint that does something like this? SELECT * FROM table WHERE Id IN (3, 12, ...) Or am I stuck with a nightmare of nested <Or> nodes? EDIT: This was my solution to generate the <Or> nodes. /// Simulates a SQL 'Where In' clause in CAML /// </summary> /// <param name="columnType">Specifies the data type for the value contained by the field.</param> /// <returns>Nested 'Or' elements portion of CAML query</returns> public static string CamlIn<T>(string internalFieldName, string columnType, T[] values) { XDocument doc = new XDocument();