cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

How to get subfolders via the REST API

AdamElkins
12-Amethyst

How to get subfolders via the REST API

Version: Windchill 12.1

 

Use Case: I need to traverse the folder structure in a Windchill Library via the REST API's


Description:

I see there are a few relevant API's. 

"/v6/DataAdmin/Containers('"+containerId+"')/Folders" provides us with a way to get the root folder, which I believe is pretty much always "/Default", but how do I get the list of folders in that folder, to recursively traverse the folder structure?

I see there is "/v6/DataAdmin/Containers('"+containerId+"')/Folders('"+folderId+"')" but that only gives me the information about the folder I already have the ID for and does not tell me what subfolders exist in that folder.

0 REPLIES 0
Announcements

Top Tags