How-To: Check if a folder already exists using a SPD workflow
Sometimes you might want to check if a folder already exists in a certain list before doing some actions.This check is not very obvious, but still pretty easy.
- Create a string workflow variable.
- Now create a lookup for your folder and set the variable to the folder's title. Take a look here for some helpful information and usage guidelines when it comes to list folders.
- The actions dependent of the existence of the folder have to be placed inside an if-statement
- E.g. the if-statement should be like "if [variable] not equals [folder name]" if you want the actions only to be run when the folder does not exist
For example, you could only create folders if they do not exist already.