Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Translate the entire conversation x

Retrieving datas using odata REST Api

Alain_Floquet
3-Newcomer

Retrieving datas using odata REST Api

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?
3 REPLIES 3
Fadel
22-Sapphire II
(To:Alain_Floquet)

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

Fede

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
22-Sapphire II
(To:Alain_Floquet)

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 .

 

 

Fede
Announcements


Top Tags