Vadim Tabakman

This is going to be another one of those Nintex related posts where people will be asking me - "Isn't it easier to just create a custom Inline Function with a little C# code???".

I've been asked atleast 5 times over the last year, if it's possible to get the name of the document set that a document is sitting in.  I thought there were a number of ways of doing this, but it's been one of those days and my brain is basically mush.  So instead of probably finding some easy way, I put together a nice User Defined Action that I can pass in some information and it will let me know the document set name.

Why a User Defined Action?

When I'm putting together workflow logic, if I find something that I can reuse later on, I inevitably move to building a User Defined Action, because I don't want to have to rebuild this logic later.

This is one of those occassions.  Not only is this something I can reuse, but I can share this with you and you can download the UDA, import and publish it into your environment and you will have this available to you in any workflow that you design.

Don't hide this from me, what does the User Defined Action do?

The UDA here is basically a nice wrapper for a bunch of Build String actions.  We're doing a number of inline function calls to replace bits and piece of text, until the end result is the Document Set name.

UDA Design

It's no a complicated piece of logic, but there are 7 Build String actions and you don't really want to build this logic everytime you need it in workflows.  The UDA here makes it easier to reuse this logic.

The UDA has a required parameters.

1. Document URL

2. Web URL

3. List Name

4. Item URL (document filename)

5. Document Set Name (output parameter)

UDA Parameters

But how do I use this User Defined Action?

To use this UDA in a workflow, you simply drag it in from the group of actions in the Workflow design page.

When you drag it on, it'll look like this :

UDA in a Workflow

Configuring the UDA in the workflow is also quite simple:

UDA Configuration

The result of this, is that if you have a document url: Document Set/test.docx

Run that through the UDA, you will get this result:

     My Document Set


Nintex Workflow 2010 - v2.3.9.0

Get Document Set Name UDA - UDA Download - import into Site Actions->Nintex Workflow 2010->Manage User Defined Actions

Test Workflow - Download and import it into the Workflow Designer Page

Posted by Vadim Tabakman Thursday, August 22, 2013 3:19:00 PM Categories: Build String Document Set Nintex Nintex Workflow Nintex Workflow 2013 User Defined Actions
Copyright Vadim Tabakman
Rate this Content 0 Votes


Tuesday, February 4, 2014 4:45:48 PM

re: Nintex Workflow - Get Document Set Name UDA

This works too good. I was trying to input the URL into the notification email to the one tasked with uploading a file to the Document Set. However, with this UDA you have stripped off the %20's which then make the URL path broken. set name apposed to

I don't wish to mess with your code but I was wondering why you would want to remove the %20 from the URL as well as the Document Set Name?

Great work thou!

Sunday, February 16, 2014 11:20:31 AM

re: Nintex Workflow - Get Document Set Name UDA

Hi Harper,

I'm not sure why I needed to do that.  There was some reason.

But feel free to modify the UDA to not remove those. 



You must sign in to this site to post comments.
Already Registered?
Sign In
Not Yet Registered?


  • Entries (295)
  • Comments (1778)