U2U Blog

for developers and other creative minds

SharePoint Lists.asmx UpdateListItems: RootFolder

This week I read Jeffrey's post on how you can update a list item located in a sub folder using the RootFolder attribute on the UpdateListItems method of the Lists.asmx web service.

It seemed interesting enough to me to get this working in the U2U CAML Query Builder (windows version and feature version) so I started to implement it but I discovered that the truth about RootFolder is not as simple as it seems from this post.

Jeffrey states that the following code should work:

<Batch OnError="Continue" PreCalc="TRUE" ListVersion="0" RootFolder="Lists/Contacts/Work">
<Method ID="1" Cmd="Update">
<Field Name="ID">47821</Field>
<Field Name="RefID">479485</Field>
<Field Name="CustomerNumber">59613</Field>
</Batch>

I think that this code works because a valid ID is specified (in which case you even don't have to specify a RootFolder attribute: the item located in a sub folder can be updated specifying a valid ID). When I try this out without an ID I get an "Invalid URL" error.

The first thing I found out is that you have to make a difference between a list and a document library. In case of a list the root folder is indeed Lists, but you have to prefix it with a "/":

<Batch PreCalc="TRUE" OnError="Continue" RootFolder="/Lists/Cities/Europe/Belgium">
   <Method ID="1" Cmd="New">
      <Field Name="Title">Gent</Field>
      <Field Name="PostalCode">9000</Field>
      <Field Name="TelephoneZone">09</Field>
   </Method>
</Batch>

In case of a document library the root folder is the name of the document library, but it also needs to be prefixed with a "/":

<Batch PreCalc="TRUE" OnError="Continue"
    RootFolder="/Folders Doclib/2008/January">
   <Method ID="1" Cmd="New">
      <Field Name="Title">Document 2</Field>
      <Field Name="Income">2500</Field>
   </Method>
</Batch>

In case someone disagrees with this or if you have reasons to believe that even this is not complete, please let me know by posting a comment.

A new version of the U2U CAML Query Builder (windows version) will be ready to release end of this week. A new version of the feature version will be released a few weeks later. I keep you posted :)

Comments (110) -

  • web marketing modena

    6/10/2015 5:41:21 AM | Reply

    This very  blog is definitely entertaining additionally amusing. I have discovered a lot of  helpful tips out of this source. I ad love to visit it every once in a while. Thanks!

  • unique antiques

    6/13/2015 10:57:42 AM | Reply

    I truly appreciate this blog.Really thank you! Really Great.

  • Types of Pavers for Patio

    6/14/2015 8:51:42 AM | Reply

    Really enjoyed this article post.Really looking forward to read more. Much obliged.

  • sewa mobil di manado

    6/14/2015 3:24:22 PM | Reply

    Thanks again for the article. Keep writing.

  • action fuel pro side effects

    6/14/2015 3:56:33 PM | Reply

    More people need to read this and understand this aspect of the story. I cant believe you are not more popular.

  • muscle forge x side effects

    6/14/2015 4:13:27 PM | Reply

    I think this is a real great post.Thanks Again. Great.

  • aimee eye lift serum and aimee age correction cream

    6/14/2015 4:29:00 PM | Reply

    Wow! This could be one particular of the most useful blogs We have ever arrive across on this subject. Basically Wonderful. I am also a specialist in this topic so I can understand your hard work.

  • power testro how does it work

    6/14/2015 4:45:00 PM | Reply

    Im obliged for the blog post.Much thanks again. Want more.

  • Fashion headbands

    6/14/2015 5:06:13 PM | Reply

    Spot on with this write-up, I actually assume this website needs much more consideration. I?ll in all probability be again to read much more, thanks for that info.

  • cerrajeros oviedo

    6/14/2015 5:42:32 PM | Reply

    Thanks again for the article.Really looking forward to read more. Want more.

  • cerrajeros algorta getxo

    6/14/2015 5:58:16 PM | Reply

    Very   superb   information can be found on  web blog.

  • cerrajero portugalete 24h

    6/14/2015 6:14:16 PM | Reply

    Thanks a lot for the article post.Really looking forward to read more. Much obliged.

  • cerrajeros barakaldo

    6/14/2015 6:30:53 PM | Reply

    Major thankies for the blog post.Really thank you! Want more.

  • cerrajerРЅa galdakao

    6/14/2015 6:48:13 PM | Reply

    Very neat blog.Thanks Again. Really Cool. here

  • pulse aqui

    6/14/2015 7:05:38 PM | Reply

    Thanks again for the blog article.Really thank you! Great.

  • cerrajeros profesionales badajoz

    6/14/2015 7:23:51 PM | Reply

    Wow, what a video it is! Genuinely pleasant feature video, the lesson given in this video is genuinely informative.

  • cerrajeros valladolid

    6/14/2015 7:44:11 PM | Reply

    we came across a cool web-site which you might enjoy. Take a look should you want

  • fett weg faktor

    6/15/2015 11:19:55 AM | Reply

    Very good blog post.Much thanks again. Want more.

  • miracolo per acufeni recensioni

    6/15/2015 12:48:10 PM | Reply

    Im obliged for the blog article.Really looking forward to read more. Cool.

  • libera dalla cellulite

    6/15/2015 11:19:40 PM | Reply

    This is one awesome blog post.Much thanks again. Keep writing.

  • Discounted Prices Smartphone Accessories

    6/16/2015 2:50:37 AM | Reply

    Very good blog.Really thank you! Really Great.

  • rental mobil makassar

    6/16/2015 4:32:34 AM | Reply

    I value you sharing your viewpoint..  So pleased to get identified this article.. Definitely practical outlook, appreciate your expression.. So happy to possess found this submit..

  • Agen Judi Online

    6/16/2015 5:32:03 AM | Reply

    Well I sincerely liked studying it. This subject offered by you is very effective for proper planning.

  • Instagram Hacker

    6/16/2015 5:49:39 AM | Reply

    My brother recommended I might like this website. He was entirely right. This post actually made my day. You can not imagine just how much time I had spent for this info! Thanks!

  • Link Today

    6/16/2015 8:05:14 AM | Reply

    Major thanks for the blog article. Great.

  • Travel Choice 2015

    6/17/2015 1:44:07 PM | Reply

    Muchos Gracias for your article post.Really thank you!

  • sniperspy.com coupon

    6/18/2015 5:04:20 AM | Reply

    This unique blog is really awesome and besides amusing. I have chosen many  useful tips out of this source. I ad love to return again and again. Cheers!

  • rack sheets

    6/18/2015 5:20:56 AM | Reply

    I think  you have  remarked some very interesting points ,  appreciate it for the post.

  • build high pr backlinks free

    6/18/2015 2:10:39 PM | Reply

    Remarkable! Just all the good words apply to this material! Thank you from the bottom of my heart and also spirit and I will certainly come go to once more if you keep up the excellent job!

  • buy from taobao

    6/18/2015 2:26:59 PM | Reply

    I truly appreciate this post.Really looking forward to read more. Really Cool.

  • wireless security cameras

    6/18/2015 3:02:02 PM | Reply

    Richard Goozh What are the most popular blog sites in the Philippines where I can submit my blogs for others to read?

  • public health consulting firms

    6/18/2015 3:17:36 PM | Reply

    Wonderful issues altogether, you simply won a new reader. What would you suggest in regards to your publish that you made a few days ago? Any certain?

  • tree service toms river nj

    6/18/2015 3:33:18 PM | Reply

    Wow, awesome blog layout! How long have you been blogging for?

  • link building strategies 2015

    6/18/2015 8:18:30 PM | Reply

    Wow! Simply outstanding! Thanks a lot for the info discussed! I understand you have actually placed a great deal of effort right into this and I wanted to inform you exactly how happy I am! There need to be more blogs similar to this online! I will definitely bookmark and subscribe to your superior site! Hope you put out much more amazing stuff in the near future as well as I will come back as well as review it! Keep up the magnum opus!

  • i nstagram web viewer

    6/19/2015 3:45:03 AM | Reply

    I'а†ve not too long ago started a weblog, the info you supply on this site has helped me considerably. Thanks  for all your time & perform.

  • How to blog

    6/19/2015 4:04:27 AM | Reply

    I really liked your blog.Really looking forward to read more. Really Cool.

  • muscle village workouts

    6/19/2015 4:23:23 AM | Reply

    I view something really special in this internet site.

  • m-patch side effects

    6/19/2015 4:40:34 AM | Reply

    Well I really liked studying it. This post offered by you is very useful for proper planning.

  • alla furman

    6/19/2015 5:01:26 AM | Reply

    I think this is a real great blog post. Fantastic.

  • Agen Judi Casino Online Terpercaya

    6/19/2015 5:17:51 AM | Reply

    Really enjoyed this blog article.Thanks Again. Fantastic.

  • muscle village fitness

    6/19/2015 5:34:24 AM | Reply

    It as going to be ending of mine day, except before end

  • simulated diamonds

    6/21/2015 7:44:03 AM | Reply

    Major thankies for the article. Keep writing.

  • brazilian hair

    6/22/2015 1:55:02 PM | Reply

    Really appreciate you sharing this article post.Really thank you! Really Cool.

  • fifa 15 keygen

    6/22/2015 2:09:28 PM | Reply

    Thanks-a-mundo for the blog post.Really looking forward to read more. Will read on

  • GiЖ°б»ќng gấp thГґng minh or giuong gap thong minh

    6/22/2015 2:24:52 PM | Reply

    Ultimately, a problem that I am passionate about. I have looked for data of this caliber for the previous various hours. Your site is greatly appreciated.

  • ecommerce expert

    6/23/2015 1:43:22 AM | Reply

    Thanks for sharing, this is a fantastic blog post.Really looking forward to read more. Will read on...

  • Data in June 2015

    6/23/2015 11:02:02 AM | Reply

    I am so grateful for your article. Really Cool.

  • hentai videos

    6/24/2015 3:14:33 AM | Reply

    Thanks for the blog post.Much thanks again.

  • Boxing June 2015

    6/24/2015 11:29:06 AM | Reply

    I appreciate you sharing this blog.Thanks Again. Much obliged.

  • eebest8 mmk

    6/26/2015 6:50:29 AM | Reply

    Sweet blog! I found it while searching on Yahoo News. Do you have any tips on how to get listed in Yahoo News? I ave been trying for a while but I never seem to get there! Many thanks

  • Mobil telefonbog

    6/26/2015 2:53:22 PM | Reply

    Really appreciate you sharing this post.Really looking forward to read more. Great.

  • vfstreaminggratuit.net

    6/28/2015 11:29:41 PM | Reply

    I truly appreciate this blog post.Really thank you! Great.

  • medicament

    6/29/2015 1:31:23 AM | Reply

    Major thanks for the article. Much obliged.

  • annuaire telephone

    6/29/2015 4:53:34 AM | Reply

    Great, thanks for sharing this article post.Thanks Again. Awesome.

  • June Post 2015

    6/29/2015 7:05:57 AM | Reply

    Enjoyed every bit of your blog article.Thanks Again. Cool.

  • solar pannels

    6/29/2015 12:41:56 PM | Reply

    Really enjoyed this post.Really looking forward to read more. Really Great.

  • My Camp 2015

    6/30/2015 2:52:47 AM | Reply

    I truly appreciate this post.Really looking forward to read more. Cool.

  • panels in html

    7/1/2015 12:34:28 AM | Reply

    A round of applause for your article.Thanks Again. Keep writing.

  • laptop chargers

    7/3/2015 4:07:40 PM | Reply

    share. I know this is off subject but I just wanted to ask.

  • backlinks

    7/6/2015 4:39:16 AM | Reply

    Amazing! Merely all the good words use to this content! Thank you from the bottom of my heart and also heart as well as I will certainly come browse through once more if you maintain up the good job!

  • young couple fucking

    7/22/2015 4:36:15 PM | Reply

    Major thanks for the blog article.Really looking forward to read more. Great.

  • tit porn

    8/15/2015 6:22:42 PM | Reply

    I cannot thank you enough for the blog.Much thanks again.

  • check my site

    9/7/2015 8:16:37 PM | Reply

    I just want to tell you that I'm very new to blogging and seriously savored your blog site. Very likely I’m going to bookmark your site . You really have remarkable article content. Thanks a lot for sharing your website page.

  • my web

    9/28/2015 3:33:07 PM | Reply

    I simply want to mention I'm beginner to weblog and truly savored you're web page. Likely I’m planning to bookmark your blog post . You surely have amazing writings. Thanks for sharing your webpage.

  • great site

    10/9/2015 12:14:02 PM | Reply

    I just want to mention I am new to blogging and honestly liked you're web site. Most likely I’m planning to bookmark your website . You actually come with very good articles and reviews. Thanks for sharing with us your website page.

  • fiverr seo

    10/29/2015 3:16:39 AM | Reply

    Really enjoyed this blog.Much thanks again. Awesome.

  • find more

    11/1/2015 4:11:48 AM | Reply

    I simply want to say I am just newbie to blogging and site-building and honestly liked you're page. Probably I’m likely to bookmark your site . You actually come with remarkable posts. Kudos for revealing your webpage.

  • pop over to this website

    11/17/2015 1:43:03 AM | Reply

    I simply want to tell you that I'm all new to weblog and definitely loved your web-site. More than likely I’m want to bookmark your site . You surely come with exceptional articles. Thank you for sharing with us your website.

  • Casie

    11/29/2015 11:44:47 AM | Reply

    Hi there, You have done a fantastic job. I will certainly digg it and personally suggest to my friends. I am sure they will be benefited from this site.

  • online tkt utilitias

    12/24/2015 5:28:37 PM | Reply

    free alati za tekst

  • linhas de texto classificacão natural

    12/24/2015 7:54:42 PM | Reply

    Text-Filter.com sorteringstextrader naturliga

  • buscar y reemplazar texto

    1/4/2016 2:14:26 AM | Reply

    [url=http://text-filter.com]dodac taki sam prefiks czy sufiks na liscie wielu urli[/url]

  • generador de cifrado base64

    1/4/2016 5:07:51 PM | Reply

    <A href="http://text-filter.com";>am anfang und ende der zeile etwas einfügen</A>

  • cifrar descifrar texto base64

    1/9/2016 2:00:49 AM | Reply

    Text-Filter.com here you have online email extractor: www . Text-Filter . com - Online - e-mail extractor,email leads extractor. ,- Online - Flip Text - Free. ,- Online - Live Word Counting ,Word Counter ,- Online - Case Converter. - Extract Email Addresses From Web page.,- Online - Find and Replace Text Word., - Online Base 64 Decode And Encode.

  • Text Editors

    1/13/2016 2:10:33 PM | Reply

    Text-Filter.com here you have online email extractor: www . Text-Filter . com - Online - e-mail extractor,email leads extractor. ,- Online - Flip Text - Free. ,- Online - Live Word Counting ,Word Counter ,- Online - Case Converter. - Extract Email Addresses From Web page.,- Online - Find and Replace Text Word., - Online Base 64 Decode And Encode.

  • zeilen nummerieren

    1/17/2016 2:53:19 AM | Reply

    herramientas de numeración

  • generador de combinación por línea

    1/17/2016 10:21:24 PM | Reply

    remove duplicate lines

  • contar el uso de multiples recuentos

    1/20/2016 9:15:01 AM | Reply

    free text tools

  • añadir quitar saltos de línea

    1/22/2016 2:42:19 AM | Reply

    cadena aleatoria

  • check my source

    1/25/2016 6:04:30 PM | Reply

    I simply want to tell you that I'm beginner to blogging and absolutely loved this web site. Most likely I’m likely to bookmark your blog post . You really come with really good posts. With thanks for sharing your website page.

Loading