We have created a workflow in Nintex Workflow 2013 that creates a document set. We are trying to figure out how to create a folder within the newly created document set. Does Nintex Workflow 2013 support this scenario?
Solved! Go to Solution.
You can use "Create item" to achieve this. You need to provide the folder path in the name field for the new folder, using the name of the document set as the first node of the path.
In the image below, I already have a document set called 'DocSet1', and when this workflow is run, a folder called 'MySubFolder' will be created within it.
This works because the 'Create item' action can handle creating folder structures in a library, and document sets happen to be a type of folder.
Hope this helps
Hi James Tyzack
I think we might have discovered a bug using a modified version of this method of folder creation.
When you hard code in the known Document Set file name (e.g. DocSet1) and there is matching item in the library, then the workflow executes correctly. However, if you use a variable (string) to get the name of the Document Set, then a folder is created in BOTH the Document Set and the root level of the library.
This issue only occurs when fetching the Document Set name as a variable:
If we hard code the Document Set name into the variable then the operation executes correctly;
The problem is that we need to automate the collection of the Document Set name and the setting of it as a variable because each Document Set is automatically created (and the folders added) and we can't be having a user going in to modify the workflow every time a new file is created.
Thanks for the advice. I made a change to the workflow as per your instructions, however, the issue still remains. Below is screenshot of the workflow and each of its configuration pages:
I have sent you via email a copy of the .swf file as well for testing.
I have responded to the message board and attached screenshots and .nwf file here.
Maybe if we can coordinate a screenshare session I can demonstrate for you. This issue has our SharePoint guys here baffled.
Apologies for leaving you in the dark. Yes, lets do a screen share so I can see. I will have our support department contact you via email to organize a time.
I would like to know also the outcome of what you find, I am trying to achieve the same functionality as Justin and am having the same results (folders in the root library).