Tc Query: Simple input example
This example shows the input document that runs a saved query in Teamcenter.
In the snap configuration following values has to fed into fields
- $object_type to Query Key
- $max_items to Max Items
- $attributes to Query Criteria Path
- $expand to Expand Attributes Path
[
{
"query_key": "General...",
"max_items": 2,
"attributes": {
"Type": "Part Revision",
"ModifiedAfter": "2025-01-01T00:00:00Z"
},
"expand": [
"item_id",
"item_revision_id",
"last_mod_date",
"object_string",
"items_tag.uom_tag"
]
}
]By this definition this query is forces to return 10 elements of type PartRevision with modification after January 1st 2025. Only internal Id values and attributes listed in array expand will be in the response.
Snap configuration | Snap output |
|---|---|
![]() | |
