Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
I would like to search for documents inside of a nested subfolder tree. I tried using the List-FolderContent webject but you have to enter a specific folder path. I want all document in all subfolders under a starting folder. Does anyone have any experience with this?
Hi Robert,
It should be possible to query folder within a folder using Query-Objects , refer below example and then execute List-FolderContents for every folder returned and you can then call the entire thing recursively.
<ie:webject name="Query-Objects" type="OBJ">
<ie:param name="INSTANCE" data="$(properties[0]wt.federation.ie.VMName[0])" />
<ie:param name="TYPE" data="wt.folder.SubFolder"/>
<ie:param name="ATTRIBUTE" data="name"/>
<ie:param name="WHERE" data="folderingInfo.parentFolder='wt.folder.SubFolder:<<IDA2A2>>'"/>
<ie:param name="GROUP_OUT" data="folderList"/>
</ie:webject>
Regards,
Bhushan