cancel
Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

How do you prevent a workflow from running on items in a folder within a document library?

Jump to solution

I set up a workflow in a document library configured to start immediately when a new item is created. I noticed that when I created a folder in the document library and added items in there, the workflow ran on those items as well. Is there a way to prevent the workflow from running on the items in the folder? I tried adding a Run If workflow action where if the current item field equals value where Content Type equals Folder, the workflow would end. It's not working. I tried using the URL Path for the folder but that didn't work either. Any help/suggestions would be greatly appreciated. Thank you!!!

Reply
5 Replies
Workflow Hero

Re: How do you prevent a workflow from running on items in a folder within a document library?

Jump to solution

Perhaps you could let the workflow start and the use a RUNIF action 

0 Kudos
Reply
Workflow Hero

Re: How do you prevent a workflow from running on items in a folder within a document library?

Jump to solution

Hi Fernando!

Do you mean let it run first and then hand it off to another WF and then build in the Run If action in there? The workflow below is what I currently have running in my document library. Thank you!

0 Kudos
Reply
Workflow Hero

Re: How do you prevent a workflow from running on items in a folder within a document library?

Jump to solution

I was able to resolve this issue by adding a build a string that included the partial URL of the folder and then putting that build string into a Run If action. Thank you!

0 Kudos
Reply
Workflow Hero

Re: How do you prevent a workflow from running on items in a folder within a document library?

Jump to solution

Don't forget to mark your answer as the correct one.




SharePoint 2013 On-Prem | Nintex Forms & Workflow Enterprise
0 Kudos
Reply
Workflow Hero

Re: How do you prevent a workflow from running on items in a folder within a document library?

Jump to solution

Thank you for the reminder!

0 Kudos
Reply