Tc Requirement Download Rich Content: Get Rich Content for ID

This example shows how to download the rich content of a requirement and store it in a file.

Since the output of Snap is binary the following File Writer Snap can store data in a file with the folling configuration for File Name: "TCReqFile_"+Date.now()+".json" .


Pipeline consistent of JSON Generator Snap, Tc Requirement Download Rich Content Snap and File Writer Snap.

The JSON document provides an example to download content of a requirement in Teamcenter OOTB data model.

In the snap configuration following values has to fed into fields

  • $doc_uid to Object ID
[
  {
    "doc_uid":"A_IAAtTW7hAnmD"
  }
]

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


Snap settings using document content to fill fields.


Settings tab of File Writer.


File opened in Notepad.