tag:blogger.com,1999:blog-8257012011174718720.post4349373963597936489..comments2024-03-28T22:48:01.249-07:00Comments on Stefan Stanev's SharePoint blog: Tips for using SPWeb.ProcessBatchDataStefan Stanevhttp://www.blogger.com/profile/08627530356349625319noreply@blogger.comBlogger20125tag:blogger.com,1999:blog-8257012011174718720.post-33098589489490047542015-03-12T03:02:08.742-07:002015-03-12T03:02:08.742-07:00Did u get any response for this? if yes please let...Did u get any response for this? if yes please let me know how can i reserve the modified valueAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-8257012011174718720.post-60404787299555329962014-04-02T18:07:50.511-07:002014-04-02T18:07:50.511-07:00Disregard - for any future readers, the issue I en...Disregard - for any future readers, the issue I encountered was with the encoding of certain characters within the MSDN examples. When I changed my "FieldXML" to instead contain a CDATA element with standard XML inside, the FIELD methods all worked.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8257012011174718720.post-4327558798463318102014-04-01T06:06:33.468-07:002014-04-01T06:06:33.468-07:00Hi Stefan - from following this & your other b...Hi Stefan - from following this & your other blog posts on ProcessBatchData, I've seen that a number of the old RPC methods (http://msdn.microsoft.com/en-us/library/office/ms480784.aspx) can be called through ProcessBatchData, using an identically formed request as the RPC approach and work. Great insight!<br /><br />Where I haven't had any luck with it though is the methods relating to fields; specifically "DELETEFIELD", "NEWFIELD" and "UPDATEFIELD". Have you had any luck leveraging these methods, or similar functionality, through ProcessBatchData?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8257012011174718720.post-64814206703051231502014-03-19T01:10:03.532-07:002014-03-19T01:10:03.532-07:00HI Stefan! Thank you !
p.s. I see one error in t...HI Stefan! Thank you ! <br />p.s. I see one error in the first line of "Create a folder in a SharePoint list/library" code snippet. encoding="utf-8", UTF-8 must be in UPPER CASE -:)Eugenehttps://www.blogger.com/profile/05325952009048510210noreply@blogger.comtag:blogger.com,1999:blog-8257012011174718720.post-87344422994739792752014-02-07T07:47:23.029-08:002014-02-07T07:47:23.029-08:00Thanks a lot man, this blog saved my dayThanks a lot man, this blog saved my dayPandevmoniumhttps://www.blogger.com/profile/08502946150546371802noreply@blogger.comtag:blogger.com,1999:blog-8257012011174718720.post-77896865633742380032013-07-22T06:34:19.484-07:002013-07-22T06:34:19.484-07:00Hi Stephen,
using ProceBatchData, can we reserve ...Hi Stephen,<br /><br />using ProceBatchData, can we reserve Modified and ModifiedBy values like systemupdate.<br /><br />Thanks,<br />Srikanthsrikanth sapellyhttps://www.blogger.com/profile/09914005114156438299noreply@blogger.comtag:blogger.com,1999:blog-8257012011174718720.post-80846690138813860262013-05-22T04:12:37.067-07:002013-05-22T04:12:37.067-07:00Hi Stefan,
How do I move a list item to a differe...Hi Stefan,<br /><br />How do I move a list item to a different folder inside the same list? Tried to set a new value for the RootFolder, but the items stays inside the old folder... (Other fields are updated correctly though)<br /><br />Thanks<br />TedinterTedhttps://www.blogger.com/profile/02163952337245129773noreply@blogger.comtag:blogger.com,1999:blog-8257012011174718720.post-37257385250037967932013-03-15T12:31:07.318-07:002013-03-15T12:31:07.318-07:00Hi Joseph,
No, it's not possible to delete ite...Hi Joseph,<br />No, it's not possible to delete items which are checked out with the ProcessBatchData method. You can use the the SPFile.UndoCheckOut method to override the check out of the file first and then you will be able to delete it.<br /><br />Greetings<br />StefanStefan Stanevhttps://www.blogger.com/profile/08627530356349625319noreply@blogger.comtag:blogger.com,1999:blog-8257012011174718720.post-71231891238550208092013-03-12T20:52:53.131-07:002013-03-12T20:52:53.131-07:00Hi Stefan,
Can we use ProceBatchData to delete sp...Hi Stefan,<br /><br />Can we use ProceBatchData to delete splist items even if the items are checkout by other user? Is this possible?Josephhttps://www.blogger.com/profile/07717081278149941988noreply@blogger.comtag:blogger.com,1999:blog-8257012011174718720.post-12674711836169317942013-01-22T14:04:51.022-08:002013-01-22T14:04:51.022-08:00Hi DA,
unfortunately not, the ProcessBatchData met...Hi DA,<br />unfortunately not, the ProcessBatchData method can't do the job in your case - you can copy the metadata with it, but not the file objects themselves. Something which comes close to achieving the latter thing is the SPListItem.Copy method (which is internally used by the SP Copy web service). Note that the Copy method creates a parent-child relation between the original file and the copy (represented by the SPFile.SourceFile property of the copy SPFile instance)<br /><br />Greetings<br />StefanStefan Stanevhttps://www.blogger.com/profile/08627530356349625319noreply@blogger.comtag:blogger.com,1999:blog-8257012011174718720.post-88100035081238520742013-01-17T01:51:21.924-08:002013-01-17T01:51:21.924-08:00Hi Stefan,
Thanks for your time in providing such ...Hi Stefan,<br />Thanks for your time in providing such a good article. <br />I would like to get a suggestion from you, I have a document library and if I want to copy(insert) these items(with files and metadata) into another document library, is it possible with ProcessBatchData? <br />I really appreciate your time in suggesting a good solution for me.<br /><br />Thanks,<br />DAAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-8257012011174718720.post-75908753466248933142012-12-07T11:49:59.678-08:002012-12-07T11:49:59.678-08:00Hi MJ,
I was actually able to create a document s...Hi MJ,<br /><br />I was actually able to create a document set using the ProcessBatchData method, but it seems that if you create a document set in this manner it is not fully initialized. The thing is that when you open the document set in the SharePoint UI (i.e. when you see its home page), you see this warning message at the top of the page: "Content types that are available to this Document Set have been added or removed. Update the Document Set.". The "update" sentence is a link and when you click it, the document set looks ready for use.<br />And this is how I created the document set - I actually used my list item editor tool (http://splistitemeditor.codeplex.com/) - it uses internally the ProcessBatchData method. So I first created a regular folder in a test document library and then simply changed its "ContentType" field to "DocumentSet" and its HTML_x0020_File_x0020_Type field to "SharePoint.DocumentSet".<br /><br />Greetings<br />StefanStefan Stanevhttps://www.blogger.com/profile/08627530356349625319noreply@blogger.comtag:blogger.com,1999:blog-8257012011174718720.post-72486067823024027712012-12-06T15:24:27.990-08:002012-12-06T15:24:27.990-08:00Hi Stefan,
Is it possible to use ProcessBatchData...Hi Stefan,<br /><br />Is it possible to use ProcessBatchData to create multiple document sets in a document library? <br /><br />Thanks,<br />MJ.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8257012011174718720.post-77588795427495333162012-04-13T08:29:09.101-07:002012-04-13T08:29:09.101-07:00Hi Anonymous,
unfortunately you can't do this ...Hi Anonymous,<br />unfortunately you can't do this with the ProcessBatchData method. The reason for this is that in a document library you can't create a list item without having a document/file associated with it. So, basically you first need to upload one or more files in the document library which as far as I know is not possible to do in batches. Even the "multiple upload" feature available in the SharePoint UI uploads the selected files opening a separate WEB DAV request for each file.<br /><br />Greets<br />StefanStefan Stanevhttps://www.blogger.com/profile/08627530356349625319noreply@blogger.comtag:blogger.com,1999:blog-8257012011174718720.post-16038307898778338642012-04-09T02:04:54.939-07:002012-04-09T02:04:54.939-07:00Hi Stefan,
how we can use processbatchdata to ins...Hi Stefan,<br /><br />how we can use processbatchdata to insert bulk records into sharepoint document library<br /><br />Regards,<br />ChiruAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-8257012011174718720.post-59698550405209237522011-01-14T02:30:26.339-08:002011-01-14T02:30:26.339-08:00Hi Anonymous,
you need to have this SetVar element...Hi Anonymous,<br />you need to have this SetVar element:<br /><SetVar Name="RootFolder">/sites/mysite/MyList/MyFolder</SetVar><br />The "Name" attribute should contain "RootFolder" and the value should contain the server relative (not the site or site collection relative) URL of the target folder in the list.Stefan Stanevhttps://www.blogger.com/profile/08627530356349625319noreply@blogger.comtag:blogger.com,1999:blog-8257012011174718720.post-33398571337883305842011-01-13T20:29:42.391-08:002011-01-13T20:29:42.391-08:00How do we create an item inside a folder? I tried ...How do we create an item inside a folder? I tried many ways if anyone could help that would be great.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8257012011174718720.post-82262641302286637442010-10-29T00:28:24.807-07:002010-10-29T00:28:24.807-07:00Hi Alex,
indeed this is the case. The ProcessBatch...Hi Alex,<br />indeed this is the case. The ProcessBatchData method works fine for batch updates, and batch moderation status changes, but you cannot use it for batch check in-s (actually I don't know of a way to achieve batch check-in-s /using a single method call/ in SharePoint). The only alternative that I can think of for creating publishing pages in batches is to use a Module feature, which of course has its own drawbacks. Several things here - there is a way to provision publishing pages with a Module feature without it being necessary to have the source aspx files for the pages in the feature - the trick is with using the "SetupPath" attribute in the Module element (check my posting on how to provision publishing pages in sandbox solutions for more details). The approach with the Module feature can also be used without having a feature at all /no folders in the TEMPLATE/FEATURES folder/ ... but this can be only achieved with reflection, which is generally not the right way to do things.Stefan Stanevhttps://www.blogger.com/profile/08627530356349625319noreply@blogger.comtag:blogger.com,1999:blog-8257012011174718720.post-50462640474779436422010-10-25T11:43:19.461-07:002010-10-25T11:43:19.461-07:00How would you apply this SPWeb.ProcessBatchData ap...How would you apply this SPWeb.ProcessBatchData approach to generating publishing pages that need content approval? creating these items in a batch would leave them in a 'draft' state, and it would appear that check-in and approval would require a loop, defeating the batch purpose... any thoughts?Alexhttp://alextalarico.comnoreply@blogger.comtag:blogger.com,1999:blog-8257012011174718720.post-44887821694285612972010-09-07T15:58:18.602-07:002010-09-07T15:58:18.602-07:00I recently came across your blog and have been rea...I recently came across your blog and have been reading along. I thought I would leave my first comment. I don't know what to say except that I have enjoyed reading. Nice blog. I will keep visiting this blog very often.<br />Thank You<br /><a href="http://socialengine.blog.friendster.com/2010/08/sharepoint-application-development/" rel="nofollow">SharePoint Site Branding</a>Unknownhttps://www.blogger.com/profile/13250811474527511599noreply@blogger.com