Thursday, July 10, 2008

UpdateListItems fails with “%20” urls

The web service Lists.asmx has the web method UpdateListItems that allows you to add, edit or delete an item in a list or document library. In the batch xml you need to put the FileRef parameter as the url of the item or folder when you are working with a document library. If your url has blanks the browser will replace it with "%20" and it is not valid for the UpdateListItems. So, you need to put the url with blanks qnd all works.

No comments:

Online Visitors