# Reducing MES Calls When Resolving Resource Hierarchies

**URL:** <https://community.criticalmanufacturing.com/t/reducing-mes-calls-when-resolving-resource-hierarchies/847>\
**Category:** Extensibility\
**Tags:** v12.0, business-rules\
**Created:** [September 11, 2026, 2:09pm UTC](https://community.criticalmanufacturing.com/t/reducing-mes-calls-when-resolving-resource-hierarchies/847 "2026-09-11T14:09:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Carlos\_Fernandes](https://avatars.discourse-cdn.com/v4/letter/c/b38774/32.png) [@Carlos\_Fernandes](https://community.criticalmanufacturing.com/u/Carlos_Fernandes)\
**Post date:** [September 11, 2026, 2:09pm UTC](https://community.criticalmanufacturing.com/t/reducing-mes-calls-when-resolving-resource-hierarchies/847/1 "2026-09-11T14:09:46Z")

</div>

I am building an ISA-95 tree and I am facing a problem, how can I know all my parent resources and grandparents and so on and so forth.

Can you suggest an API that has this information. Thanks!

---

<div class="post-metadata">

**Author:** ![Carlos\_Fernandes](https://avatars.discourse-cdn.com/v4/letter/c/b38774/32.png) [@Carlos\_Fernandes](https://community.criticalmanufacturing.com/u/Carlos_Fernandes)\
**Post date:** [September 11, 2026, 2:17pm UTC](https://community.criticalmanufacturing.com/t/reducing-mes-calls-when-resolving-resource-hierarchies/847/2 "2026-09-11T14:17:53Z")

</div>

While working on the ISA-95 hierarchy resolution for Resources, I came across a useful MES system endpoint that can simplify how we retrieve the Resource hierarchy: `GetAscendentResources`.

## The problem

When we start with a Resource and need to determine its position in the ISA-95 hierarchy, we may need information about its parent Resources.

Production Line → ProcessResource

Without a way to retrieve the hierarchy directly, we would need to make multiple calls to MES, retrieving one parent at a time until we reach the top of the hierarchy.

This becomes particularly inefficient when the hierarchy contains several levels or when multiple Resources need to be resolved.

**The solution** : `GetAscendentResources`

While investigating the available MES system endpoints, I found the `GetAscendentResources` endpoint.

Instead of retrieving each parent Resource individually, this endpoint allows us to retrieve the Resource’s ascendant hierarchy in a single call.

This allows the hierarchy resolution logic to identify the relevant Production Line and Work Cell without repeatedly querying MES.

 ![image](https://canada1.discourse-cdn.com/flex050/uploads/community_criticalmanufacturing/original/2X/4/4ecd642c35c86c2a996c4e57f26a0c32ad155142.png)

## **Takeaway**

When working with Resource hierarchies, it is worth checking whether there is already a system endpoint that provides the hierarchy information you need.

In this case, `GetAscendentResources` can replace multiple parent-navigation calls with a single MES call, making the hierarchy resolution simpler and more efficient.

If you need to retrieve the complete Resource hierarchy, `GetAscendentResources` is definitely an endpoint worth knowing about.

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex050/user_avatar/community.criticalmanufacturing.com/system/32/23_2.png) [@system](https://community.criticalmanufacturing.com/u/system)\
**Post date:** [September 13, 2026, 2:17pm UTC](https://community.criticalmanufacturing.com/t/reducing-mes-calls-when-resolving-resource-hierarchies/847/3 "2026-09-13T14:17:57Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
