Create a part and update it
This example pipeline demonstrates how to create a part and then update one of its attributes.

Steps
1: Input for the creation is stored in JSON Generator. The stored JSON document contains data necessary for creating a Part.
Snap configuration | Snap output |
|---|---|
![]() | |
2: In the snap configuration following values has to fed into fields of the Tc Create Snap:
- $object_type to field Object Type
- $attributes to field Object Attributes Path
- $expandAttributes to field Expand Attributes Path
Snap configuration | Snap output |
|---|---|
![]() | |
Output document contains data of newly created object. The attribute “fnd0CurrentLocationCode” is still null since it is an attribute which can not be set while create in Teamcenter.
3: The resulting object includes ID information which can be taken in JSON Generator Snap document.
UIDs in Teamcenter are as the name says UNIQUE. The UIDs in the example only exist in our Teamcenter system as expected for our example. Same is valid for Adapter ID "_id" since its base is the UID.
Snap configuration | Snap output |
|---|---|
![]() | |
The stored JSON document stores “id” and “object_type“ value and contains data to be updated for the Part.
4: In the snap configuration following values has to fed into fields of the Tc Update Snap:
- $_id to field Object ID
- $object_type to field Object Type
- $updateAttributes to field Object Attributes Path
- $expandAttributes to field Expand Attributes Path
Snap configuration | Snap output |
|---|---|
![]() | |
Output JSON document provides an example of the response returned when updating a Part Revision in Teamcenter. Now attribute “fnd0CurrentLocationCode” has a value set and object_desc is updated too.



