Use SPSiteDataQuery to find SPListitem.Name value RRS feed

  • Question

  • How do you use the SPSiteDataQuery to find SPListItems in Document Libraries where the Name starts with 'foo'?


    <Where><BeginsWith><FieldRef Name='Name'/><Value Type='Text'>Foo</Value></BeginsWith></Where>


    Doesn't return a thing. I can change 'Name' to 'Title' and get something. So what is the right SharePoint FieldReference (CAML) that matches to SPListItem Name?

    Thursday, November 10, 2011 2:03 PM