Can UpdateListItems or any other available SP2010 web service create a document set
-
miércoles, 08 de agosto de 2012 15:55
I can easily create a new list item or in the example below a folder with code like...
updateService.Lists us = new updateService.Lists();
us.Credentials = SPWebServiceUserCredentials;
us.Url = SProotURL + siteName + "_vti_bin/lists.asmx";
XmlNode ndListView = us.GetListAndView(listName, "");
XmlDocument doc = new XmlDocument();
XmlElement batchElement = doc.CreateElement("Batch");
batchElement.SetAttribute("OnError", "Continue");
batchElement.SetAttribute("ListVersion", "1");
batchElement.InnerXml = "<Method ID='1' Cmd='New'>" +
"<Field Name='ID'>New</Field>" + "<Field Name='FSObjType'>1</Field>" +
"<Field Name='BaseName'>" + "New_Folder" + "</Field></Method>";
XmlNode ndReturn = us.UpdateListItems(listName, batchElement);
But what I would really like to be able to do is create a document set, I thought about creating a folder and then updating it to be a set but although you can chnage the Content Type it still behaves as a folder "view" and not a Document Set... any ideas?
Todas las respuestas
-
miércoles, 08 de agosto de 2012 16:06
http://sharepoint.stackexchange.com/questions/16545/is-it-possible-to-create-a-document-set-via-web-servicesRegards,
Bubu
http://zsvipullo.blogspot.it- Propuesto como respuesta HeToCMicrosoft Community Contributor miércoles, 08 de agosto de 2012 16:16
-
jueves, 09 de agosto de 2012 9:07The links to Steve Curran's blogs refer to creating a new document set content type remotely BUT what I want to do and I hope it should be a bit easier... is to create a document set in a given document library for an existing document set content type remotely i.e. via web services?
-
jueves, 09 de agosto de 2012 10:34
I have found the answer in one of Steve Curran's other blogs.... see link below
http://sharepointfieldnotes.blogspot.co.uk/2010/06/making-your-sharepoint-2010.html
regards
Yorp
- Marcado como respuesta yorp2 jueves, 09 de agosto de 2012 10:35

