Solved

Run if a file is added to a specific folder

  • 15 August 2023
  • 1 reply
  • 94 views

Badge +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.

icon

Best answer by SimonMuntz 16 August 2023, 02:04

View original

1 reply

Userlevel 6
Badge +22

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.

Reply