Skip to main content
1-Visitor
February 5, 2026
Question

How to Create a Problem Report using API by Part Attribute Number

  • February 5, 2026
  • 2 replies
  • 98 views

Version: Windchill 13.0

 

Use Case: I want to create a Problem Report using the API using the Part number no the Product Id.


Description:

I am able to creae a Problem report using the provided api PUT call
Windchill/servlet/odata/ChangeMgmt/ProblemReports.

The issue I have is I do not know how to create one using the part number which is what the users refer to it as.
This request works
{
"Name": "Scott's Problem Report created from WebLogic API call",
"Description": "Something Bad Happened.",
"State": { "Value": "NEW" },
"NeedDate": "2026-02-15T00:00:00+00:00",
"IssuePriority": { "Value": "HIGH" },
"Requester": "some_user",
"Context@odata.bind": "Containers('OR:wt.pdmlink.PDMLinkProduct:13211')"

}

My end users do not know this Id. They know the Part attribute Number only.

I have tried various things like

"Context@odata.bind""Containers('OR:wt.part.WTPart.Attribute.Number:MD0000020932')"
  "Context@odata.bind""Containers('OR:wt.part.WTPart.number:MD0000020932')"
 
 

here is a sample of the xml  which shows the PDMLinkProduct and the attribute and value.

<?xml version="1.0" encoding="UTF-8"?>
<wc:COLLECTION xmlns:wc="http://www.ptc.com/infoengine/1.0">
<wt.fc.WTObject NAME="output" TYPE="Unknown" STATUS="0">
<wc:MESSAGE>query-qualifier configspec BASELINE 0000155954</wc:MESSAGE>
<wc:INSTANCE>

<containerReference>OR:wt.pdmlink.PDMLinkProduct:13211:251628340-1291235178103-837902375-81-215-49-155@WNCHLDEVAP01.test.xxx.org</containerReference>
<number>MD0000020932</number>

</wc:INSTANCE>
</wt.fc.WTObject>
</wc:COLLECTION>

 

Any help would be greatly appreciated.

 

2 replies

16-Pearl
February 6, 2026

Hi @SB_13671263,

Could you please provide more details?

Are you trying to create a Problem Report using the Part Number?

Could you clarify what you mean by that?

Fadel
23-Emerald I
February 6, 2026

Run a REST query to get ID by number then use the ID in the above query .

you can take further and do the whole in a single batch

Buiꓘa