Skip to main content
Nintex Community Menu Bar
Solved

Run if a file is added to a specific folder

  • August 15, 2023
  • 1 reply
  • 146 views

Forum|alt.badge.img+2

SharePoint 2016

I need to setup a workflow that will only run when a file is uploaded to a specific folder in a document library and haven’t been able to find any solutions.

Best answer by SimonMuntz

Hi @mstallings,

Unfortunately there is no conditional start option for Nintex workflows on document libraries in SharePoint.  The only thing you can so is to have a workflow start every time a document is added.
The first thing you would do in the workflow would be to store the URL path to the document in a variable.
Then use a regular expression to extract the folder name.  Then check the variable in a set a condition action. If the variable does not equal the folder name you require then end the workflow.  If it does match, go down the yes branch and continue and run the rest of the workflow.

1 reply

SimonMuntz
Nintex Employee
Forum|alt.badge.img+23
  • Nintex Employee
  • Answer
  • August 16, 2023

Hi @mstallings,

Unfortunately there is no conditional start option for Nintex workflows on document libraries in SharePoint.  The only thing you can so is to have a workflow start every time a document is added.
The first thing you would do in the workflow would be to store the URL path to the document in a variable.
Then use a regular expression to extract the folder name.  Then check the variable in a set a condition action. If the variable does not equal the folder name you require then end the workflow.  If it does match, go down the yes branch and continue and run the rest of the workflow.