<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>SharePoint Magazine - Latest Comments in Writing CAML Queries For Retrieving List Items from a SharePoint List</title><link>http://sharepointmagazine.disqus.com/</link><description>SharePoint Magazine is an online magazine dedicated to the world of SharePoint and related Information Worker technologies.</description><language>en</language><lastBuildDate>Sat, 07 Nov 2009 08:39:02 -0000</lastBuildDate><item><title>Re: Writing CAML Queries For Retrieving List Items from a SharePoint List</title><link>http://sharepointmagazine.net/?p=506#comment-22126409</link><description>Thank you thank you thank you. Ive been looking everywhere for this exact article.&lt;br&gt;&lt;br&gt;Good work..</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">cotswoldsbb</dc:creator><pubDate>Sat, 07 Nov 2009 08:39:02 -0000</pubDate></item><item><title>Re: Writing CAML Queries For Retrieving List Items from a SharePoint List</title><link>http://sharepointmagazine.net/?p=506#comment-19651568</link><description>Nice !!!!!!!!&lt;br&gt;&lt;br&gt;Try this too,&lt;br&gt;&lt;a href ="http://sarangasl.blogspot.com/2009/09/sharepoint-list-c-part-1.html" rel="nofollow"&gt;&lt;b&gt;SharePoint Lists and more&lt;/b&gt;&lt;/a&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">sarangasl</dc:creator><pubDate>Fri, 09 Oct 2009 03:12:13 -0000</pubDate></item><item><title>Re: Writing CAML Queries For Retrieving List Items from a SharePoint List</title><link>http://sharepointmagazine.net/?p=506#comment-13963638</link><description>Hi,&lt;br&gt;&lt;br&gt;I am trying to get listitems using the same method. I have a order no field in the list and some other fields are Customers which is a lookup and date which is a calculated column and Agency which is a text.&lt;br&gt;&lt;br&gt;I am querying by order no.&lt;br&gt;&lt;br&gt;I can retrieve Agency as it is a simple text, but I can't seem to get Customer name and Date as one is a lookup and one is a date. It is my necessity that I query by order number only and for each order number, get the rest of the data for each listitem.&lt;br&gt;&lt;br&gt;Can you share your ideas please?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">sweha</dc:creator><pubDate>Wed, 05 Aug 2009 01:10:28 -0000</pubDate></item><item><title>Re: Writing CAML Queries For Retrieving List Items from a SharePoint List</title><link>http://sharepointmagazine.net/?p=506#comment-13932733</link><description>Offset option didn't work . it has to be OffsetDay='-7'</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">sandeepnahta</dc:creator><pubDate>Tue, 04 Aug 2009 17:23:25 -0000</pubDate></item><item><title>Re: Writing CAML Queries For Retrieving List Items from a SharePoint List</title><link>http://sharepointmagazine.net/?p=506#comment-13278018</link><description>I solved my problem by using U2U CAML builder. Great app!!!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">suzanne</dc:creator><pubDate>Fri, 24 Jul 2009 12:47:52 -0000</pubDate></item><item><title>Re: Writing CAML Queries For Retrieving List Items from a SharePoint List</title><link>http://sharepointmagazine.net/?p=506#comment-13272383</link><description>I installed the Employee training site template and have lists associated with that template. One of the lists is Past Registrations where items from another list are moved by workflow after an event.  Weird thing:  a query of this list (with no conditions) does not return all list items. What can I do?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">suzanne</dc:creator><pubDate>Fri, 24 Jul 2009 10:45:06 -0000</pubDate></item><item><title>Re: Writing CAML Queries For Retrieving List Items from a SharePoint List</title><link>http://sharepointmagazine.net/?p=506#comment-12987941</link><description>Hi Ms.Karine,&lt;br&gt;&lt;br&gt;                I'm not able to retrieve a column from a sharepoint list that has some empty values.I'm getting this error "Object referrence not set to instance of an object".Can anyone please help me out.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">scvinod</dc:creator><pubDate>Tue, 21 Jul 2009 01:21:17 -0000</pubDate></item><item><title>Re: Writing CAML Queries For Retrieving List Items from a SharePoint List</title><link>http://sharepointmagazine.net/?p=506#comment-12738631</link><description>you need to use &amp;lt;Today OffsetDays="1" /&amp;gt; instead of &amp;lt;Today Offset="1"/&amp;gt; to make query work.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">sharepoint guy</dc:creator><pubDate>Thu, 16 Jul 2009 08:30:43 -0000</pubDate></item><item><title>Re: Writing CAML Queries For Retrieving List Items from a SharePoint List</title><link>http://sharepointmagazine.net/?p=506#comment-12726702</link><description>Hi all,&lt;br&gt;&lt;br&gt;     Is it possible to write an IF function in a CAML query or is it possible to use a valure returned from a function???</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">scvinod</dc:creator><pubDate>Thu, 16 Jul 2009 01:26:55 -0000</pubDate></item><item><title>Re: Writing CAML Queries For Retrieving List Items from a SharePoint List</title><link>http://sharepointmagazine.net/?p=506#comment-12725635</link><description>Hi Karine and others,&lt;br&gt;&lt;br&gt;                          Hey guys i have column called "Managers" in my list in which i have to more than 1 value like this "vinod:sc" which means vinod and sc are the 2 managers.Is it possible in my CAML query to get the 2 values separately ???</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">scvinod</dc:creator><pubDate>Thu, 16 Jul 2009 00:32:47 -0000</pubDate></item><item><title>Re: Writing CAML Queries For Retrieving List Items from a SharePoint List</title><link>http://sharepointmagazine.net/?p=506#comment-12725306</link><description>@bamarob55&lt;br&gt;&lt;br&gt;that must becoz the internal field name of of the column "last Name"would different from what you see.Please get the internal field name by this code "list.Fields["Manager"].InternalName.ToString();" and then put the name tht u get in the CAML query.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">scvinod</dc:creator><pubDate>Thu, 16 Jul 2009 00:18:43 -0000</pubDate></item><item><title>Re: Writing CAML Queries For Retrieving List Items from a SharePoint List</title><link>http://sharepointmagazine.net/?p=506#comment-12713624</link><description>I'm having trouble getting all the fields to return.  I'm having trouble with any fields that have a space in the field name. I.e.:&lt;br&gt;&lt;br&gt;ndViewFields.InnerXml = "&amp;lt;FieldRef Name='Last Name'/&amp;gt;&amp;lt;FieldRef Name='Author'/&amp;gt;&amp;lt;FieldRef Name='Department'/&amp;gt;&amp;lt;FieldRef Name='Crew'/&amp;gt;"&lt;br&gt;&lt;br&gt;works fine to return Author, Department, and Crew, but the Last Name field doesn't get returned.  Any tips you can provide would be much appreciated.&lt;br&gt;&lt;br&gt;I'm using the "Retrieving List Items with CAML using the SharePoint Web Services" method.&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;&lt;br&gt;Robert</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">bamarob55</dc:creator><pubDate>Wed, 15 Jul 2009 16:39:06 -0000</pubDate></item><item><title>Re: Writing CAML Queries For Retrieving List Items from a SharePoint List</title><link>http://sharepointmagazine.net/?p=506#comment-12437545</link><description>Hi Karine n others,&lt;br&gt;&lt;br&gt;                       Is it possible to write a CAML query within a CAML query.Please help me out.Thank you.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">vinod</dc:creator><pubDate>Fri, 10 Jul 2009 07:34:35 -0000</pubDate></item><item><title>Re: Writing CAML Queries For Retrieving List Items from a SharePoint List</title><link>http://sharepointmagazine.net/?p=506#comment-11444176</link><description>Not able to get Recurrence Data in the response even after adding &amp;lt;ExpandRecurrences&amp;gt;TRUE&amp;lt;/ExpandRecurrences&amp;gt;&lt;br&gt;Any suggestions</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">asdasd</dc:creator><pubDate>Fri, 19 Jun 2009 08:42:35 -0000</pubDate></item><item><title>Re: Writing CAML Queries For Retrieving List Items from a SharePoint List</title><link>http://sharepointmagazine.net/?p=506#comment-10514888</link><description>I am building a custom workflow in SharePoint and I ise CAML query to retrive data about status of the task. However, at one point, an error started to arise: One or more field types are not properly installed... I checked internal nemes and everything is fine. The strangest thing is that the same code worked before. What can be the cause? I would extremely appriciate your help.&lt;br&gt;&lt;br&gt;Thanks in advance</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Zarko</dc:creator><pubDate>Fri, 05 Jun 2009 05:36:26 -0000</pubDate></item><item><title>Re: Writing CAML Queries For Retrieving List Items from a SharePoint List</title><link>http://sharepointmagazine.net/?p=506#comment-10387949</link><description>Excellent post, Karine!  &lt;br&gt;&lt;br&gt;This is one of the best posts that I've read on CAML.   It's straightforward yet thorough.  Unlike other articles that I've read about CAML, this one covers all scenarios.&lt;br&gt;&lt;br&gt;Thank you very much!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jennifer Lewis</dc:creator><pubDate>Tue, 02 Jun 2009 11:31:11 -0000</pubDate></item><item><title>Re: Writing CAML Queries For Retrieving List Items from a SharePoint List</title><link>http://sharepointmagazine.net/?p=506#comment-9970961</link><description>Is there any (easy) way to call Lists.ASMX from an Infopath 2007 form and use the results in a dropdown?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tim Landgrave</dc:creator><pubDate>Tue, 26 May 2009 17:25:32 -0000</pubDate></item><item><title>Re: Writing CAML Queries For Retrieving List Items from a SharePoint List</title><link>http://sharepointmagazine.net/?p=506#comment-8486724</link><description>Hi Boske,&lt;br&gt;&lt;br&gt;This is the only place that I found this useful information about getting Calendar data throug lists.asmx webservice.  But I got a problem and not sure why it behave this way.  Basically, I was able to get calendar data from this month with all recurrence events.  But when I click Next month, I put this code like you suggest in QueryOptions to set CalendarDate to the next month but it doesn't seem to effect anything.  It's always return me the all events for the current month and upto the same day next month (e.i:  if I query from today 4/21/2009, I'll get everything from April upto May 21)  I can't seem to get further.  Please help...&lt;br&gt;&lt;br&gt;Thanks&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;XmlNode queryOptionsNode = camlDocument.CreateElement("QueryOptions");queryOptionsNode.InnerXml = "&amp;lt;ExpandRecurrences&amp;gt;TRUE&amp;lt;/ExpandRecurrences&amp;gt;" + "&amp;lt;CalendarDate&amp;gt;2009-05-21T01:00:00Z&amp;lt;/CalendarDate&amp;gt;";</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dylan</dc:creator><pubDate>Tue, 21 Apr 2009 11:25:30 -0000</pubDate></item><item><title>Re: Writing CAML Queries For Retrieving List Items from a SharePoint List</title><link>http://sharepointmagazine.net/?p=506#comment-6906037</link><description>Hello, I m lookin to retrieve the direct link to a document in my CAML query result, who can I do that??&lt;br&gt;I'm usintgSPSIteDataQuery accross multiple SubSite and use the SPWeb.GetSiteData(myCamlQuery)&lt;br&gt;thanks in advance!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Florian</dc:creator><pubDate>Thu, 05 Mar 2009 11:09:09 -0000</pubDate></item><item><title>Re: Writing CAML Queries For Retrieving List Items from a SharePoint List</title><link>http://sharepointmagazine.net/?p=506#comment-6115571</link><description>Hello. Thank you for the helpful article.&lt;br&gt;&lt;br&gt;I'm curious - has the method for expanding recurring calendar events over webservices been tested? &lt;br&gt;&lt;br&gt;I have been able to get it working "server-side", as described in the iCal article; however - no combination of options seems to work for expanding recurring events using the web services interface.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andrew</dc:creator><pubDate>Mon, 09 Feb 2009 11:22:53 -0000</pubDate></item><item><title>Re: Writing CAML Queries For Retrieving List Items from a SharePoint List</title><link>http://sharepointmagazine.net/?p=506#comment-5478003</link><description>How can you debug SPException "Cannot Complete this action" ? My query looks fine. But if I try to access myListItemCollection.Count I get the error</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John Dieter</dc:creator><pubDate>Thu, 22 Jan 2009 16:52:24 -0000</pubDate></item><item><title>Re: Writing CAML Queries For Retrieving List Items from a SharePoint List</title><link>http://sharepointmagazine.net/?p=506#comment-4370157</link><description>Excellent introduction on CAML query creation. In real time I am facing some prolem, can any one please suggest me the solution. In SharePoint list I have 5 columns: Title, Description, submitter, status and Published Date. My query should be like: &lt;br&gt; (Status = ‘Published’ AND Published Date=’10/10/2008’) AND (title contains ‘xyz’ OR descrition contains ’abcd’ OR submitter conains ‘aaa’)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">sayvidyasagar</dc:creator><pubDate>Fri, 12 Dec 2008 13:35:48 -0000</pubDate></item><item><title>Re: Writing CAML Queries For Retrieving List Items from a SharePoint List</title><link>http://sharepointmagazine.net/?p=506#comment-4162957</link><description>My list contains folders as list items.Can anyone help how to sort folder in list.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">agnel</dc:creator><pubDate>Thu, 04 Dec 2008 03:26:13 -0000</pubDate></item><item><title>Re: Writing CAML Queries For Retrieving List Items from a SharePoint List</title><link>http://sharepointmagazine.net/?p=506#comment-4048151</link><description>Hi&lt;br&gt;&lt;br&gt;I use the U2U caml builder gor queries and I use the shpt web services to retrieve data.&lt;br&gt;&lt;br&gt;I am facing a problem. When I want to get the data from a particular view of the list, I pass the view name of the getlistitems method and it returns me the rows belonging to that view only.&lt;br&gt;&lt;br&gt;However, when I try getting the data from a view based on a query, the query returns the data from the all items view rather than from that particular view only, and as a result I get extra rows, what should i do to prevent this?&lt;br&gt;&lt;br&gt;Thanks a lot&lt;br&gt;&lt;br&gt;Akshaya</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Akshaya</dc:creator><pubDate>Fri, 28 Nov 2008 02:43:23 -0000</pubDate></item><item><title>Re: Writing CAML Queries For Retrieving List Items from a SharePoint List</title><link>http://sharepointmagazine.net/?p=506#comment-3987548</link><description>Thank you, thank you. I wish I had saw this post last week. This cleared up a lot of questions!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">john</dc:creator><pubDate>Mon, 24 Nov 2008 13:14:34 -0000</pubDate></item></channel></rss>