Skip to main content
3-Newcomer
February 27, 2025
Question

Retrieving datas using odata REST Api

  • February 27, 2025
  • 1 reply
  • 689 views
I am using Windchill PDMLink Release 12.0 and Datecode with CPS 12.0.1.0

Windchill odata rest api:
Given an EPMDocument ID ( ex: OR:wt.epm.EPMDocument:140542976) , how do I get the ID of EPMDocuments that reference it using the ASSTORED or LATEST navigation criteria?

1 reply

Fadel
23-Emerald I
March 12, 2025

Bonjour Alain,

The Nav criteria are filters used to resolve  BOM Components .

The reference EPM document do no use filters as far as I know : 

Fadel_2-1741791245193.png

 

take a look at https://www.ptc.com/en/support/article/CS340518 ,

 

BR,

Fadel

Buiꓘa
3-Newcomer
March 25, 2025

In fact I want retrieve the EPMDcoument which uses the given one. Ex: Given an EMPDocument representing a Creo part, I want retrieve all CREO assemblies which use it.

Fadel
23-Emerald I
March 25, 2025

is there a requirement to use Rest , this can be done OOTB using alias attributes  

 

On the EPMDoc type create an Object Refeerence alias attribute with mapping masterReference@wt.epm.EPMDocumentMaster~uses@wt.epm.structure.EPMMemberLink~usedBy^wt.epm.EPMDocument

This will show the parents are links on the info page : 

Fadel_0-1742920519788.png

 

and you can query the attribute dierctly in Rest .

 

 

Buiꓘa