Skip to main content
Nintex Community Menu Bar
Solved

Get DocSetName in a WF

  • March 12, 2024
  • 3 replies
  • 52 views

kpope
Forum|alt.badge.img+7

created a WF to run on a document that is a certain CT. The WF needs to pickup/grab the DocSet name - then set it to a variable - in order to rename the document (PDF) (using a string I have configured) and then route (copy) that PDF to a certain folder in a different doclib. 

How do I configure the WF to GET the docset name for the document the wf is running on? (there are many docsets) 

Clearly getting the NAME field isn’t working (as it picks up the name of the doc - the NAME field for the docset is also the same field for the doc NAME)

Best answer by kpope

then using the pattern in the regex control

the above saved the docset name with a ";" (the variable needs to be a collection type)  at the end. 
I used the following to remove the ";"

then I was able to configure the WF to rename the doc for the new location

 

3 replies

SimonMuntz
Nintex Employee
Forum|alt.badge.img+23
  • Nintex Employee
  • March 12, 2024

Hi @kpope,

I have investigated this solution, and there appears to be no reference to the document set name that can be easily obtained.
The only solution I can see would be to get the URL for the document and then use text functions or a regular expression or both to extract the document set name.


kpope
Forum|alt.badge.img+7
  • Author
  • Apprentice
  • March 13, 2024

Thank you - how is this configured? I grabbed the item url (not using a reference - I assume I’d use the Context Item URL? ) and I have hightlighted in red, the DocSet name.  

 


kpope
Forum|alt.badge.img+7
  • Author
  • Apprentice
  • Answer
  • March 13, 2024
then using the pattern in the regex control

the above saved the docset name with a ";" (the variable needs to be a collection type)  at the end. 
I used the following to remove the ";"

then I was able to configure the WF to rename the doc for the new location