You are viewing limited content. For full access, please sign in.

Question

Question

Check to See if Folder Exists, If not "Create Folder Structure", Else "file document"

asked on April 9, 2014 Show version history

We have setup a new folder structure for our employees and are just beginning to implement. The new folder structure to begin with will be created when a new employee is hired. We are starting a new LF Form that, when completed, gets filed into an employees folder. The problem is that existing employees will not have the new folder structure. So we want to be able to (within Workflow) look to see if the employee folder exists or not. If it does, then file the document in the correct folder. If not, then Invoke the Employee Folder Creation workflow and then file the document in the appropriate employee folder.

 

How do I setup the logic to look if that folder already exists though?

0 0

Answer

SELECTED ANSWER
replied on April 9, 2014

You can use a "Find Entry" activity to find the entry at the expected folder path assuming the user's folder structure is present. Then use a "Conditional Decision" activity where the two branches would use the condition %(FindEntry_EntryWasFound) is true and %(FindEntry_EntryWasFound) is false respectively. If the entry was found, file the form and if the entry was not found, invoke your workflow that first creates the folder structure and then file the form.

2 0
replied on April 9, 2014

Thank you. It looks like that will do the trick.

0 0

Replies

replied on April 9, 2014

Create Entry can check if the folder exists and return the existing one if it's there. Is it a single folder or some more complex folder structure?

1 0
replied on April 9, 2014

Unfortunately it is more complex. We would be taking the employees last name and extracting the last initial from it using Pattern Matching. Then we would also extract the last 4 of the employees social security number. The full path would be something like Employee Folders-> S-> Smith, Blake - 5555-> Salary.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.