Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X
When I´m getting data from a generic I don´t get a List of it´s instances (or their IDs) to gather their information as well. I only know that I currently work with a generic but not which instances are associated with it. Is there a way to get the IDs of instances either in the main call (/CADDocuments('id') or using a second call? I assume this would require a query specification, has anybody found documentation on those? I haven´t yet been able to find a documentation that goes into the details of potential specifications and how to set up Request Bodies to get additional data.
I´d also be interested in finding out which generic a instance belongs to so if anybody knows how to get the ID of a generic from any of it´s instances that would be fantastic to know as well.
The system I´m working on:
WRS version: 13.0.2.4
Windchill version: 13.02.
Example JSON when using /CADDocuments('id'):
{
"@odata.context": "domain/Windchill/servlet/odata/v3/CADDocumentMgmt/$metadata#CADDocuments/$entity",
"CreatedOn": "---",
"ID": "OR:wt.epm.EPMDocument:---1",
"LastModified": "---",
"ACTIVE3DMODELID": null,
"ADDRESS1": null,
"ADDRESS2": null,
"APPROVALAPPBY": null,
"APPROVALAPPDATE": null,
"AUTODRAWINGNO": null,
"AuthAppVersion": 37,
"AuthoringApplication": {
"Value": "---",
"Display": "---"
},
"BASEUOM": null,
"CHANGEDATE": null,
"CHANGEDBY": null,
"CHANGEEXPLANATION": null,
"CHANGEREASON": null,
"CHECKEDBY": null,
"CHECKEDDATE": null,
"CLASSIFICATION": null,
"COPYATTRIBUTES": null,
"CREATEACADDWG": null,
"CUSTOMERDRAWINGNO": null,
"CUSTOMERNAME": null,
"CUSTOMERPROJECT": null,
"CUSTOMERSC": null,
"CabinetName": "Default",
"Category": {
"Value": "CADCOMPONENT",
"Display": "CAD Part"
},
"ChangeStatus": null,
"CheckOutStatus": "",
"CheckoutState": "---",
"Comments": "",
"CreatedBy": "---",
"DESCRIPTION1": null,
"DESCRIPTION2": null,
"DOCPART": null,
"DRAWINGNO": null,
"DRWNREXTENSION": null,
"Derived": false,
"ECN": null,
"FamilyTableStatus": 2,
"FileName": "---.prt",
"FolderLocation": "---",
"FolderName": "---",
"GeneralStatus": null,
"Generic": true,
"IDENTNO": null,
"Identity": "---",
"Instance": false,
"Latest": true,
"LifeCycleTemplateName": "---",
"MADEAT": null,
"MADEBY": null,
"MATERIAL1": null,
"MATERIAL2": null,
"MATERIALTYPE": null,
"Mass": null,
"MissingDependents": false,
"ModifiedBy": "---",
"NDVersion": "L-05",
"NUMBEROFCHANGES": null,
"Name": "---.prt",
"Number": "---.PRT",
"ORDERCODE": "-",
"ORDERNO": null,
"ObjectType": "---",
"OrganizationReference": null,
"OwnerApplication": {
"Value": "EPM",
"Display": "Workgroup Manager"
},
"PRESSUREAPPBY": null,
"PRESSUREAPPDATE": null,
"PROJECT": null,
"QUOTATIONNO": null,
"REFERENCEDRW": null,
"REFERENCEREV": null,
"REPLACEDBY": null,
"REPLACEDFOR": null,
"RESUTCATEGORY": 1,
"RESUTCLASSIFICATION": "---",
"RESUTCOATING": "---",
"RESUTCOLORING": "---",
"RESUTDESCRIPTION1DE": null,
"RESUTDESCRIPTION1EN": null,
"RESUTDESCRIPTION2DE": null,
"RESUTDESCRIPTION2EN": null,
"RESUTDESCSEMIFINISHED": "-",
"RESUTHARDNESS": "-",
"RESUTMANUFACTURER": null,
"RESUTMASS": null,
"RESUTMATERIAL": null,
"RESUTMDLDENSITY": null,
"RESUTPARTNO": "---",
"RESUTPARTNOSEMIFINISHED": "-",
"RESUTSTANDARDDIMENSION": "---",
"RESUTSTANDARDEDGE": "---",
"RESUTSTANDARDSURFACE": "---",
"RESUTSTANDARDTOLERANCECLASS": null,
"RESUTVOLUME": null,
"REVISION": "---",
"Revision": "---",
"ShareStatus": null,
"State": {
"Value": "---",
"Display": "---"
},
"SubCategory": null,
"TOLERANCE": null,
"TypeDisplayName": "CAD Document",
"TypeIcon": {
"Path": "/prt_with_generic.gif",
"Tooltip": "CAD Part Generic"
},
"VOLUME": null,
"Verified": true,
"Version": "---",
"VersionID": "VR:wt.epm.EPMDocument:---8",
"WEIGHT": null,
"WELDINGAPPBY": null,
"WELDINGAPPDATE": null,
"@PTC.AppliedContainerContext.LocalTimeZone": "---"
}
Solved! Go to Solution.
