Hi Thmanampudi Lokesh Parameswara Reddy,
Yes, you can apply filters directly when fetching data from Teamcenter. The recommended approach is to configure Teamcenter query filters in the Connector/Extension so that only the relevant items (like AC revision) are returned. If that’s not possible, you can fall back to XPath filtering in Mendix, but that’s less efficient.
I will give you simple steps
1. Create a Microflow for the Teamcenter Query
In Mendix Studio Pro, create a new microflow (e.g., MF_GetFilteredItems).
Add a Call Teamcenter Service activity (this comes from the Teamcenter Connector/Extension module).
2. Configure the Teamcenter Service Call
Choose the Teamcenter operation you need (e.g., findItems or query).
In the input mapping, specify the filter criteria:
For example, set the property Revision = "AC".
You can also add other attribute filters (e.g., ItemType = "Part").
3. Map the Response
Create an import mapping that maps the Teamcenter response into your Mendix entities (Item, Revision, etc.).
Ensure that the mapping includes the attributes you filtered on (Revision, Item ID, etc.).
4. Return the Filtered List
The microflow will now return only the items that match your filters.
You can pass this list to a Data Grid, Data View, or expose it via a REST API.
5. Optional: Add XPath Constraints
If you want an extra layer of filtering in Mendix, you can apply an XPath constraint on the entity:
Example: [Revision = 'AC']
But remember, this is client‑side filtering. The main efficiency gain comes from applying filters in the Teamcenter query itself.