I have a workflow that does a query to a SQL database and then copies a base folder with subfolders to build folders in Laserfiche for each row of data (<LastName>, <FirstName> <MI>), and then assigns a "Client ID" field value.
This works, as long as no folders are pre-existing. Here is what it looks like after the first run with one folder (I deleted the others that were created to keep it simple.) The "000 AAA Base..." folder with its subfolders is the one that gets copied and renamed with each row in the query. "XXXXXabo, Cynthia K" is a result of this workflow running once. Her folder has all the subfolders as well. So far so good.
Now the issue: When I run the workflow again, Cynthia's folder gets duplicated and a "(2)" is attached. All the new folders come in just fine. But we want to make this workflow durable, so it can run every day, or multiple times a day, to bring in new clients and create folders for them (but not if they already exist!)
I would like some help with knowing how to have my workflow check for the existing folder name, and then not re-create the folder if it already exists.
Please advise. Thanks!