Retrieving Folder Contents of a Specific Type
This example shows you how to retrieve folder contents of a specific type of entity. This uses type-casting.
Use the following GET request to get Parts in a Folder
URI
GET /Windchill/servlet/odata/v4/DataAdmin/Containers('OR%3Awt.pdmlink.PDMLinkProduct%3A90537')/Folders('OR%3Awt.folder.Cabinet%3A90566')/FolderContents/PTC.ProdMgmt.Part HTTP/1.1
Use the following GET request to get CAD Documents in a Folder.
URI
GET /Windchill/servlet/odata/v4/DataAdmin/Containers('OR%3Awt.pdmlink.PDMLinkProduct%3A 90537')/Folders('OR%3Awt.folder.Cabinet%3A90566')/FolderContents/PTC.CADDocumentMgmt.CADDocument HTTP/1.1
Use the following GET request to get Dynamic Documents in a Folder.
URI
GET /Windchill/servlet/odata/v4/DataAdmin/Containers('OR%3Awt.pdmlink.PDMLinkProduct%3A90537')/Folders('OR%3Awt.folder.Cabinet%3A90566')/FolderContents/PTC.DynamicDocMgmt.DynamicDocument HTTP/1.1