Tc BOM Structure Create TraceLink: Create a tracelink between two occurrences
This example pipeline demonstrates how to create a trace link between two occurrences of a BOM.
As start the output JSON of Snap Tc BOM Structure Get For TraceLink (*) is used.
[
{
"productContext": {
"uid": "SR::N::Awb0ProductContextInfo..P:AePAAhTl7hAnmD,RR:QkKAAAA47hAnmD,PA:1,SS:1,EXP:0,,,AWBCB",
"className": "Awb0ProductContextInfo",
"type": "Awb0ProductContextInfo"
},
"parentOccurrence": {
"uid": "SR::N::Awb0PartElement..BOMLine..9.wkLN4pIycauOlA.A2LAAhak7hAnmD..QmMAAhTl7hAnmD...,,AWBCB",
"className": "Awb0PartElement",
"type": "Awb0PartElement"
},
"structure": {
"displayName": "SL BOM Test 1",
"occurrenceId": "SR::N::Awb0PartElement..BOMLine..9.wkLN4pIycauOlA.A2LAAhak7hAnmD..QmMAAhTl7hAnmD...,,AWBCB",
"stableId": "AONAAhTl7hAnmD",
"underlyingObjectType": "Part Revision",
"underlyingObjectUid": "AePAAhTl7hAnmD",
"children": [
{
"displayName": "SL BOM Test 2 x1",
"occurrenceId": "SR::N::Awb0PartElement..BOMLine..9.1kcIi8rOcaOaaA.A2LAAhak7hAnmD..QmMAAhTl7hAnmD.Group:/Thid_QuJAAhTl7hAnmD..,,AWBCB",
"stableId": "AONAAhTl7hAnmD:QuJAAhTl7hAnmD",
"underlyingObjectType": "Part Revision",
"underlyingObjectUid": "AuHAAhTl7hAnmD"
},
{
"displayName": "SL BOM Test 3 x2",
"occurrenceId": "SR::N::Awb0PartElement..BOMLine..9.OI7U5hn8ca_ezD.A2LAAhak7hAnmD..QmMAAhTl7hAnmD.Group:/Thid_QyEAAhTl7hAnmD..,,AWBCB",
"stableId": "AONAAhTl7hAnmD:QyEAAhTl7hAnmD",
"underlyingObjectType": "Part Revision",
"underlyingObjectUid": "A2LAAhTl7hAnmD"
},
{
"displayName": "SL BOM Test 4 x3",
"occurrenceId": "SR::N::Awb0PartElement..BOMLine..9.1TUryMxEca_2QB.A2LAAhak7hAnmD..QmMAAhTl7hAnmD.Group:/Thid_QyLAAhTl7hAnmD..,,AWBCB",
"stableId": "AONAAhTl7hAnmD:QyLAAhTl7hAnmD",
"underlyingObjectType": "Part Revision",
"underlyingObjectUid": "A_PAAhTl7hAnmD"
},
{
"displayName": "SL BOM Test 5 x4",
"occurrenceId": "SR::N::Awb0PartElement..BOMLine..9.7306kZcPcauR0B.A2LAAhak7hAnmD..QmMAAhTl7hAnmD.Group:/Thid_Q2CAAhTl7hAnmD..,,AWBCB",
"stableId": "AONAAhTl7hAnmD:Q2CAAhTl7hAnmD",
"underlyingObjectType": "Part Revision",
"underlyingObjectUid": "QKDAAhTl7hAnmD"
}
]
}
}
]Now occurence of child one and three shall be connected via tracelink e.g. A Mapper Snap will extract ids.
ID values are unique and bound to object in one Teamcenter. IDs will not work for another Teamcenter. Create own Parts to get valid IDs for testing.
Snap configuration | Snap output |
|---|---|
![]() | |
The JSON document to give input to Snap has now the following values to be fed into fields:
- $.primary to Primary ID field of Snap
- $.secondary to Secondary ID field of Snap
Snap response contains information for _id and UID of created tracelink.
Snap configuration | Snap output |
|---|---|
![]() | |

