Pagination complete when is empty, choose empty field

Describe the problem/error/question

Hi there! i am trying the new pagination node in version 1.15.2.
I want to start off by saying that pagination is great! thanks for developing, this makes multiple request easy, and the workflow way easier readable. But, I have a question about completing the pagination.
I would like the pagination to stop if the response.body.Items is empty, the response is empty option is not working as the API gives some information back but there is one field with the data that is empty. Like this:

I want to evaluate that field and if it is true I want to complete te pagination.

I’have tried to use the other option like shown in this screenshot.

Also tried {{response.body.Items = }}

What is the error message (if any)?

The error message if I use the option ‘Response is Empty’

Please share your workflow

Sorry cannot share the flow because of sensitive information.

Information on your n8n setup

  • n8n version: 1.15.2.

Hey @timautomation,

What about checking the length with something like {{ $response.body.Items.length === 0 }}

1 Like

Smart! that works :slight_smile:


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