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

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Translate the entire conversation x

How do I get list of documents from item

FM_13835117
6-Contributor

How do I get list of documents from item

Version: Windchill 12.0

 

Use Case: All documents are attached to item and I need to get a list of them in order to download them


Description:

I know how to search an item with the rest api and how to display all its metadata but I didn't find how to get list of child items which should be the documents I need to download.
Thanks for help.

Fred

ACCEPTED SOLUTION

Accepted Solutions
Fadel
22-Sapphire III
(To:FM_13835117)
9 REPLIES 9
Fadel
22-Sapphire III
(To:FM_13835117)

with item do you mean a part ? how documents are linked reference or describe link ? 

Fede
FM_13835117
6-Contributor
(To:Fadel)

Yes, documentation linked to a part. I don't know when I get the part how to list the linked document.

Thanks,

Fred

Fadel
22-Sapphire III
(To:FM_13835117)

from the related objects tab you can see if its describe or reference doc : 

Fadel_0-1758183326548.png

 

Fede
FM_13835117
6-Contributor
(To:Fadel)

Exactly it s where the documents are but I don't know how to get this link when I send a request throught the REST API. Do you have any idea ?

Fred

Fadel
22-Sapphire III
(To:FM_13835117)

FM_13835117
6-Contributor
(To:Fadel)

Ok thanks a lot I test it and come back to you

The solution you proposed works great ! Thanks a lot 
Do you know if we can get the same result with REST API instead of ODATA ? (http://<host name>/Windchill/servlet/rest/)

Fadel
22-Sapphire III
(To:FM_13835117)

FM_13835117
6-Contributor
(To:Fadel)

Hi Fede, it is almost what I was looking for, but I thought to get an equivalent of this ODATA http request using the REST API /Windchill/servlet/rest/ ?
Thanks in advance,
Fred

Announcements
Top Tags