Detecting Discrepancies in the BOM Transformer
Discrepancies in the BOM transformer indicate the differences between the previous and new version of engineering bill of materials.
You can detect discrepancies between upstream and downstream structures in the BOM transformer by specifying the source root part (here, upstream root part), target root part (here, downstream root part), part at the source (here, upstream part) for which you want to detect discrepancies, and upstream and downstream navigation criteria in the request body.
* 
The request detects discrepancies of all the statuses such as Auto, Manual, Interactive, For Information, and Resolved and of all the criteria available in Windchill such as Added Parts, Association Discrepancy, Part Attributes, Quantity, Removed Parts, Usage Attributes, and so on.
This example shows you how to detect a discrepancy with status as Auto and criteria as Removed Parts by specifying the parent part in the upstream structure from which a child part was removed. Use the following POST URI with the request body:
URI
POST Windchill/servlet/odata/BomTransformation/DetectDiscrepancies
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"DiscrepancyContext": {
"UpstreamNavigationCriteria@odata.bind": "NavigationCriterias('OR:wt.filter.NavigationCriteria:265539')",
"TargetRoot@odata.bind": "Parts('OR:wt.part.WTPart:267364')",
"SourceRoot@odata.bind": "Parts('OR:wt.part.WTPart:267254')",
"SourcePartSelection": [
{
"Part@odata.bind": "Parts('OR:wt.part.WTPart:267106')"
}
],
"DownstreamNavigationCriteria@odata.bind": "NavigationCriterias('OR:wt.filter.NavigationCriteria:265574')"
}
}
The request returns attributes and information about the detected change made to the specified upstream part.
Was this helpful?