Create Document Set using "Call Web Service"

  • 17 March 2020
  • 5 replies
  • 17 views

Badge +3

I'm trying to save the trouble of editing the workflow every time a new component is added and build a set of actions that would build a library name according to a standard, and then create a document set in that library. I am trying to use the Call Web Service with the following configuration:

 

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:m="http://schemas.microsoft.com/sharepoint/soap/">
<soap:Header/>
<soap:Body>
<m:UpdateListItems>
<m:listName>{Library Name}</m:listName>
<m:updates>
<Batch OnError="Continue">
<Method ID="2" Cmd="New">
<Field Name="ID">New</Field>
<Field Name="ows_ContentType">Resident Folder</Field>
<Field Name="ows_ContentTypeId">0x0120D5200084FC073EAB8A6549B4C579572554083100155A307745F4FC4B970F9714E551A017</Field>
<Field Name="Title">{Document Set Name}</Field>
</Method>
</Batch>
</m:updates>
</m:UpdateListItems>
</soap:Body>
</soap:Envelope>

 

Instead of a document set, what gets created is a "000 File" with the naming standard of "ID_.000".  I also see that the ows_ContentType gets reset to "Resident Document".

 

Please help!


5 replies

Userlevel 6
Badge +22

Hi,

 

What web service and method are you using?

Badge +3

URL: Web URL/_vti_bin/Lists.asmx

Web method: UpdateListItems

Userlevel 6
Badge +22
I am not sure if that web service can do the job as discussed here:
https://community.nintex.com/t5/Nintex-for-SharePoint/Can-you-create-a-new-document-set-with-Nintex/td-p/19322
Badge +3

Unfortunately, the solution you suggested only explains how to creare a document set using the "Create item" action, while I have to use "Call web service", because the destination of the document set varies depending on a value in one of the columns of the item which triggers the document set creation.

Userlevel 6
Badge +22
As I advised I do not think there is a web service that can create a document set.

On the thread I linked a user advised that they had to create their own web service and this is what I was highlighting to you.
https://community.nintex.com/t5/Nintex-for-SharePoint/Can-you-create-a-new-document-set-with-Nintex/m-p/19323/highlight/true#M15986

Reply