Retrieving Material Assignment Links
The following example shows you how to retrieve all available material assignment links.
Use the following GET request.
URI
GET /Windchill/servlet/odata/Sustainability/EngineeringMaterials('OR:wt.part.WTPart:565998')/MaterialAssignmentLinks
Example: Retrieving a Specific Material Assignment Link
The following example shows you how to retrieve a material assignment link by specifying the material assignment link OID in the request URI.
Use the following GET request.
URI
GET /Windchill/servlet/odata/Sustainability/EngineeringMaterials('OR:wt.part.WTPart:565998')/MaterialAssignmentLinks('OR:wt.engineeringmaterial.MaterialAssignment:566023')
You can retrieve the details of the related parts for an engineering material object using the following GET request with $expand:
URI with Expand on RelatedPart
GET /Windchill/servlet/odata/Sustainability/EngineeringMaterials('OR:wt.part.WTPart:565998')/MaterialAssignmentLinks?$expand=RelatedPart
這是否有幫助?