Skip to main content
12-Amethyst
May 23, 2023
Question

API code to fetch all the EPMDocument's in the system without passing inputs like number etc..

  • May 23, 2023
  • 1 reply
  • 801 views

I am using Windchill PDMLink Release 11.2 and Datecode with CPS 11.2.1.17

API to fetch collection of all EPMDocument objects in the system without passing inputs like number, name etc..

1 reply

avillanueva
23-Emerald I
23-Emerald I
May 24, 2023
HelesicPetr
22-Sapphire II
22-Sapphire II
May 24, 2023

😄

for others simple code is:

 

QuerySpec query = new QuerySpec();
int indexA = query.appendClassList(wt.epm.EPMDocument.class, true);
QueryResult qr = PersistenceHelper.manager.find(query);

 

 

PS: you can use what ever object you want.WTPart, WTDocument, all existing types in the system. 

 

PetrH