cancel
Showing results for 
Search instead for 
Did you mean: 
sverem
Nintex Newbie

Create Document Set using "Call Web Service"

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!

Labels: (1)
0 Kudos
Reply
5 Replies
SimonMuntz
Nintex Employee
Nintex Employee

Re: Create Document Set using "Call Web Service"

Hi,

 

What web service and method are you using?

0 Kudos
Reply
sverem
Nintex Newbie

Re: Create Document Set using "Call Web Service"

URL: Web URL/_vti_bin/Lists.asmx

Web method: UpdateListItems

0 Kudos
Reply
SimonMuntz
Nintex Employee
Nintex Employee

Re: Create Document Set using "Call Web Service"

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/...
0 Kudos
Reply
sverem
Nintex Newbie

Re: Create Document Set using "Call Web Service"

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.

0 Kudos
Reply
SimonMuntz
Nintex Employee
Nintex Employee

Re: Create Document Set using "Call Web Service"

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/...
0 Kudos
Reply