How to Get Objects Physical ID

To perform  any modification on an object, we need its object id which is unique for each object. It’s different than PLMExternalID. 

The below Web Service URI is used to get physical ID of the object. PLMID is passed as a input criteria to search the object.

requestURI= serverURL + "/resources/v1/modeler//:/search?\\\$searchStr=" + PLMID + "&\\\$top=50&\\\$skip=0"

User need to modify the /: section in the URL for differed types of object.  

For example, for MFG items:

requestURI= serverURL + "/resources/v1/modeler/dsmfg/dsmfg:MfgItem/search?\\\$searchStr=" + PLMID + "&\\\$top=50&\\\$skip=0"

Below line of code sends a request to webservice to get the physical ID. The output will be stored in oDTN (DataTreeNode)

// Send GET request to HTTP client with INPUT URI to get physical ID
oBuffer = client.Get(requestURI, oDTN)