Skip to main content
Question

stopCondition in pagination in Enhanced Datasource REST

  • January 22, 2026
  • 1 reply
  • 14 views

nkatlytix
Starter

When I try pagination in the Enhanced datasource REST I only get 1 run, it stops after the first page.

My Json result looks like this when I get to a page without a result:
{

    "data": [],

    "status": "success"

}

 

How do I get my stopCondition to work in pagination?

1 reply

Thomas Lind
Community Manager
Forum|alt.badge.img+5
  • Community Manager
  • January 22, 2026

Hi ​@nkatlytix 

Looking at my guides and comparing it to your example, I would think something like this would work.

/TX_Autogenerated_Root/TX_Autogenerated_Element/data/*[1]

 

An explanation of this.

The first part

/TX_Autogenerated_Root/TX_Autogenerated_Element/data/*
selects all element children of <data>.

*[1]
Adds a saying as from those child elements, take only the first position i.e. the first child element.