Tc Relation Expand Multi: Simple example

This example shows the input document that expands the relations of several objects in one call.

In the snap configuration following values has to fed into fields:

  • $.objects[*] to Entities Path*

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.

[
    {
        "objects":
        [
            {"_id":"TC*Part*null***A2OAgQJH7hAnmD"},
            {"_id":"TC*Part Revision*null***A6CAgQJH7hAnmD"},
            {"_id":"TC*Part Revision*null***AWOAgogw7hAnmD"}
        ]
    }
]

Snap configuration

Snap output


Setting of Snap matching input document information.

The JSON document provides example of output from Teamcenter.

[
  {
    "objects": [
      {
        "_id": "TC*Part*null***A2OAgQJH7hAnmD",
        "MultiExpandDescribedBy": []
      },
      {
        "_id": "TC*Part Revision*null***A6CAgQJH7hAnmD",
        "MultiExpandDescribedBy": []
      },
      {
        "_id": "TC*Part Revision*null***AWOAgogw7hAnmD",
        "MultiExpandDescribedBy": [
          {
            "_id": "TC*DocumentRevision*null***QuJAgogY7hAnmD",
            "checked_out": " ",
            "fms_tickets": [],
            "fnd0IRDCUsed": "",
            "has_variant_module": null,
            "is_IRDC": false,
            "is_vi": false,
            "items_tag": "TC*Document*null***QuFAgogY7hAnmD",
            "items_tag_DISPLAY": "051592-Clutch",
            "last_mod_date": "2025-01-21T11:53:05Z",
            "object_desc": "Document for correlating Part",
            "object_string": "051592/A;1-Clutch",
            "object_type": "DocumentRevision",
            "object_type_DISPLAY": "Document Revision",
            "owning_group": "TC*Group*null***QBFAAAA47hAnmD",
            "owning_group_DISPLAY": "Engineering",
            "owning_site": null,
            "owning_site_DISPLAY": "",
            "owning_user": "TC*User*null***A6CAAAx07hAnmD",
            "owning_user_DISPLAY": "ecs1 (ecs1)",
            "process_stage_list": [],
            "release_status_list": [],
            "revision_number": 0,
            "UID": "QuJAgogY7hAnmD",
            "view": []
          }
        ]
      }
    ]
  }
]