Nintex Workflow – Fix Names UDA
Some of you may be aware of a post from Microsoft that describes what is and isn’t allowed for text in Site names, Folder names and File names : http://support.microsoft.com/kb/905231
I thought it would be a good bit of logic to make into a User Defined Action in Nintex Workflow as it would make it very reusable and would make your workflows more robust. This UDA would take an some text, an identifier of whether you are going to use it for a Site Name, Folder Name or File Name and would also take a variable which will be where the output “valid” text will go.
The UDA looks like this :
From the design above, you can see that the UDA firstly does a Switch. This means it decides which branch of workflow logic it needs to go down, based on the type of fixing it needs to do.
0 – Site Name
1 – Folder Name
2 – File Name
To test out this type of UDA, I created a test workflow to try the UDA for a Site name, Folder and File name.
SharePoint won’t allow you to have a filename with a “.files” extension.
So if you have a filename like “start.docx.files” and you ran it through this UDA, you would end up with : start.docx
Nintex Workflow 2010: Version 22.214.171.124
User Defined Action: Download User Defined Action (.UDA)
Test Workflow Design: Download a Test Nintex Workflow (.NWF)