apply filter conditions Teamcenter Itemrevision Search - Teamcenter Extension

0
Hi, I am going through the course https://academy.mendix.com/link/paths/160/Integrate-Teamcenter-Into-Your-App. I was successfully created search Items. But is there any way to apply filter in the microflow itself to filter on a specific attribute?    Like for a specific item i only need AC revision. and some other filters on other attributes. Is there any way to apply filters directly when fetching data from teamcenter rather fetching all and applying filters?    Could some one please guide me with this? Thanks in advance   Any reference docs would be helpful. 
asked
1 answers
0

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.

answered