Reputation: 81
How can I get the the folder name of the file in the Get MetaData function.
As itemname I get this as result "*", since I have a wildcard in the connection settings of the source dataset. The folder structure is like this: project/location/file and would like to have location passed aswell.
Is it possible to pass like '/location/file.tdms' or pass the location in the next step which is an iteration (ForEach)?
Upvotes: 0
Views: 621
Reputation: 5074
You can provide the project folder name under the container as shown below and use the Get Metadata
activity to get the list of folders under the Project folder.
Get Metadata
activity to get the folders under the project.The output of Get Metadata:
Get Metadata
activity output to the ForEach
activity to loop the current item and get the files under the location folder.Get Metadata
activity to show the list of files under location (output folder of Get Metadata1).The output of Get Metadata2:
Upvotes: 1