How to Create a Problem Report using API by Part Attribute Number
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
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.

