I have a list with only one view exposed on it (default view). That list has a filter with a field Assigned To = [Me] so all users logged in can only see their own list items. This list items get copied from a master list.
I have this code to get the list items from the list with only one view but it only returns the items assigned to myself (as expected). Is there anyway to get all list items in a list regardless of the view?
var xmlDoc = new XmlDocument(); XmlNode query = xmlDoc.CreateNode(XmlNodeType.Element, "Query", ""); XmlNode viewFields = xmlDoc.CreateNode(XmlNodeType.Element, "ViewFields", ""); XmlNode queryOptions = xmlDoc.CreateNode(XmlNodeType.Element, "QueryOptions", ""); queryOptions.InnerXml = "<MeetingInstanceID>-1</MeetingInstanceID><ViewAttributes Scope='RecursiveAll' />"; return destLists.GetListItems(listConfig.DestGuid, listConfig.DestViewGuid, query, viewFields, RowLimit, queryOptions, null);