I have added a File System Task to an SSIS package for the purpose of creating 7 new subfolders in 24 existing directory subfolders based on a purchase order number.
The first var titled MainFolderPath is to the main system where the existing and new subfolders reside. Additionally I have created a var called FolderName that creates a subfolder with the PO #, and then creates 7 new subfolders in the PO # subfolder.
The part I am struggling with is creating a var that will create the PO and 7 new subfolders in each of the 24 existing subfolders at the same time. Below is my example:
Var 1: var.MainFolderPath Type – String
\\10.xxx.xx.xxx\sales\subsystem
Var 3: var.FolderName Type – String
+ [@User::var_PurchaseOrder] + "1. Estimates" + "2. Approval" + "3. Legal" + "Processing" + "5. Fulfilment" + "6. Shipping" + "7. Billing"
In the subsystem are 24 existing subfolders, e.g. engines, tires, electrical, etc. The missing var finds those existing subfolders by name for the var.PurchaseOrder to create the new PO # folder and 7 new subfolders.
I hope this structure makes sense, and would appreciate any assistance on how I can make this work.