This is an update to a post I wrote on deleting list items from document libraries, prompted by a comment made on that post asking how to delete Folder(s) from within a document library. Initially I replied by suggesting the use of the SharePoint object mode, as shown below; SPWeb web = new SPSite(“your site’s … Continue reading Delete a Folder from a Sharepoint Document Library
Here’s a code snippet for checking the Xml result returned from Sharepoints UpdateListItems() Lists webservice method.
Recently, calling Sharepoint Lists Webservice method UpdateListItems() I was getting back an error message of “One or more field types are not installed properly”. After head scratching for a while I remembered that some of the list columns had spaces in, so I duly replaced spaces on the column names of my CAML query with _x0020_ and … Continue reading Sharepoint UpdateListItems Webservice Error Message
Deleting items from Sharepoint Document Libraries or Lists should be fairly straightforward, however there are a couple of gotcha’s depending on which method from Sharepoint Webservices you want to use and accordingly, there are differences in the formatted CAML command you would use. Firstly a Document Library is a form of List, but the CAML … Continue reading Deleting Items from Sharepoint Document Libraries