Skip to main content
Question

Can max_rows be used with perform_hierarchy_select in OData?

  • June 2, 2025
  • 1 reply
  • 41 views

Forum|alt.badge.img+3

Hi everyone,
I'm working with the perform_hierarchy_select endpoint in the FSM OData API and trying to limit the number of records returned. 

This is the code I’m trying to use:
 


{
  "parameters": {
    "query": {
      "hierarchy_select": {
        "attrs": {
          "attr": [
            "task.task_id",
            "task.task_status"
          ]
        },
        "primary_table": "task",
        "from": {
          "table": ["task"]
        },
        "max_rows": 15
      }
    }
  }
}

 

1 reply

AdrianEgley
Hero (Customer)
Forum|alt.badge.img+14
  • Hero (Customer)
  • 176 replies
  • June 2, 2025

Hi ​@jantonio,

Might be better to wait for one of the IFS Employees to comment, but I have been doing similar things in my role.

If using ODATA could you use a $top ‘x’ and $orderby ‘y’ to control that, and do the select through building the URL that gets posted.
I’m finding myself move towards that method instead of trying to do it in a hierarchy select perform.

An example of a post I have where I might have used the perform hierarchy select but now in using ODATA.

Hope that is a little helpful.


Ady


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings