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

Community Tip - You can change your system assigned username to something more personal in your community settings. X

Translate the entire conversation x

How to get Sub-Folders and folder content from Windchill Project Container using ODATA REST services

Janaki.Raman
10-Marble

How to get Sub-Folders and folder content from Windchill Project Container using ODATA REST services

Hi,

 

I would like to get the same folder and content representation of project container from Windchill to Navigate using ODATA services, I stuck at getting subfolders(level 2+). Please help me.

 

I use the following API 

Windchill/servlet/odata/v6/DataAdmin/Containers('ID')/Folders?%24count=false&%24expand=Folders

 

However, this gives me only the first level of the folder structure not the nested folders.

 

Also, How to get the folder content?

 

 

many thanks,

Janakiraman

ACCEPTED SOLUTION

Accepted Solutions

You can use below to fetch all levels

Windchill/servlet/odata/v6/DataAdmin/Containers('ID')/Folders?%24count=false&%24expand=Folders(%24levels%3Dmax)

 Let me know if you need any clarification on this

View solution in original post

2 REPLIES 2

Hi @Janaki.Raman 

Thank you for your question. 

Your post appears well documented but has not yet received any response. I am replying to raise awareness. Hopefully, another community member will be able to help.

Also, feel free to add any additional information you think might be relevant. It sometimes helps to have screenshots to better understand what you are trying to do.

 

Best regards,


Catalina
PTC Community Moderator
PTC

You can use below to fetch all levels

Windchill/servlet/odata/v6/DataAdmin/Containers('ID')/Folders?%24count=false&%24expand=Folders(%24levels%3Dmax)

 Let me know if you need any clarification on this

Announcements
Top Tags