The PTC Community is on temporary read only status in preparation for moving our community to a new platform. Learn more here
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.
Hi @scott_b_hphc,
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?
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
