Hananiel's Enterprise Chronicles

Agility through patterns in .Net Development

Thursday, February 16, 2006

Sharepoint CAML Query (Include Subfolders)

After unsuccessfully trying to discover the caml to list/search for items in a document library,
here is what i found:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/spptsdk/html/tscSPQuery_SV01013584.asp

Remarks
SPQuery can only get the items in the current folder; SPQuery will not get the items in subfolders. This is the design feature in SharePoint Portal Server 2003. To

so there you go

Sharepoint Restore and Doc Library Customizations

After running the Gui utility to restore sharepoint, I was getting this weird error: "no such field name" when I try to access the sharepoint object model. After a whole lot of mucking around I realized that we had customized our document library caml elements under
C:\Program Files\Common Files\Microsoft Shared\web server extensions\60\TEMPLATE\1033\XML
After copying the appropriate files, sharepoint works like a charm. I guess that should mean it doesnt as usual .