Skip to main content
12-Amethyst
January 31, 2024
Question

Windchill Rest API

  • January 31, 2024
  • 1 reply
  • 3120 views

Hi,

I am new to using Windchill REST API, therefore, I'm just playing around for now.

But I would like to know how to GET all the xml documents from a specific folder. How can I do this?

I tried the following:

eg.

GET /DynamicDocuments

$filter @odata.type eq #PTC.DynamicDocMgmt.DynamicDocument

Error:

"message": "The system query option '$filter' has the not-allowed value '@odata.type eq #PTC.DynamicDocMgmt.DynamicDocument'."

1 reply

Fadel
23-Emerald I
February 1, 2024

try this :

Fadel_0-1706784361147.png

 

Fadel_1-1706784424281.png

 

 

Buiꓘa
Darquise12-AmethystAuthor
12-Amethyst
February 1, 2024

It kinda worked. However, I just realized that our xmls and organized in sub folders. Hence why I trying to work with the type. E,.g downlaod all xml documents with a certain subtype of DynamicDocument. 

 

I scrolled down to our subtype in WRS, e.g. GET /DynamicDocuments/PTC.DynamicDocMgmt.Condition 

But all I get is metadata. How can I get the latest version of the full xml document?

Fadel
23-Emerald I
February 1, 2024

Can you share some screenshot , I don't follow you

Buiꓘa