DetectDiscrepancies
The DetectDiscrepancies action detects discrepancies of all statuses and criteria that exist between the upstream and downstream structures in the BOM transformer.
 
The action does not support detection of discrepancies for a resource structure.
The action detects discrepancies for a single or multiple upstream parts using inline or specific upstream and downstream navigation criteria.
* 
PTC recommends that you specify the navigation criteria when you perform this action. If not specified, the System Default filter is applied.
See the Detecting and Resolving Discrepancies in the BOM Transformer topic in the Windchill Help Center, for more information.
The action returns information for each detected discrepancy. Each discrepancy returns the following attributes for each change made to the specified upstream parts:
Identity
Number
Name
Version
In the same set of attributes, it also returns the following attributes:
Criteria of the detected discrepancy.
CurrentValue
 
The attribute is returned only for discrepancies of the Added Parts criteria.
PreviousValue
 
The attribute is returned only for discrepancies of the Removed Parts criteria.
DownstreamParentPath, which is valid only for discrepancies of the Added Parts criteria.
Status of the detected discrepancy.
InternalMetadata, which is an internal encoded information.
The URI
POST Windchill/servlet/odata/BomTransformation/DetectDiscrepancies
returns the following response, for example:
{
"@odata.context": "$metadata#DiscrepancyItems",
"value": [
{
"Identity": "0000000305, ChildChild1, A.1 (Design)",
"Number": "0000000305",
"Name": "ChildChild1",
"Version": "A.1 (Design)",
"Criteria": "Removed Parts",
"CurrentValue": "",
"PreviousValue": "0000000302|0000000305",
"DownstreamParentPath": [
""
],
"Status": "Auto",
"InternalMetadata": "eyJTdGF0dXMiOiJBdXRvIiwiQ3VycmVudFZhbHVlSW50ZXJuYWxOYW1lIjoiIiwiRGlzY3JlcGFuY3lTdGF0dXNNZXNzYWdlIjoiIiwiZG93bnN0cmVhbVBhcmVudCI6IjAwMDAwMDAzMDJ8MDAwMDAwMDMwNSIsIlJlbW92ZWRDaGlsZCI6Ind0LnBhcnQuV1RQYXJ0OjI2NTkyMiIsInVwc3RyZWFtSW1wYWN0ZWRPYmplY3QiOiIiLCJEaXNjcmVwYW50UGF0aFJvb3QiOiJ3dC5wYXJ0LldUUGFydE1hc3RlcjoyNjU4NjciLCJDdXJyZW50VmFsdWUiOiIiLCJTdGF0dXNJbnRlc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