Skip to main content
1-Visitor
April 23, 2024
Question

ODATA REST API: How to get EPMDocument Where Used

  • April 23, 2024
  • 1 reply
  • 736 views

Hello,

We are looking to get Where Used data for EPMDocument. Currently windchill/servlet/odata/v4/CADDocumentMgmt/CADDocuments does not contain an Endpoint for getting this information. 

Use case: We have a part (EPMDocument) which is used in multiple assemblies (EPMDocument as well). Windchill UI displays this information:

CT_10109568_1-1713901719279.png

 

How to get this information using Windchill ODATA REST API?

Thank you

1 reply

HelesicPetr
22-Sapphire II
22-Sapphire II
April 24, 2024

Hi @CT_10109568 

You can use a odata report domain or IE task domain that call a Windchill Report Template.

You just need to crate own report that collects information you need.

You need to use an template report RestApi to call the report inside the Windchill.

 

ExecuteReportTemplate

Viewing the output of Report Template execution

InvokeIETask with report parameter

CS378132 - Input Parameter not provided in Query Builder Report

Windchill Reporting Resource

 

HelesicPetr_0-1713939426082.png

/Windchill/servlet/odata/Reporting/ReportTemplates('OR:wt.query.template.ReportTemplate:334133')/PTC.Reporting.ExecuteReportTemplate

HelesicPetr_1-1713939426276.png

HelesicPetr_2-1713939426407.png

check Windchill odata documentation

/Windchill/netmarkets/html/wrs/doc.html

 

Report template example

CS103435 - Query Builder Report" listing the "Where Used" for an "EPM Document"

 

PetrH