Forum Discussion

FlorianF's avatar
FlorianF
Frequent Visitor
2 years ago

Function for dynamic pages don't work correctly

Hi guys,
 
I am struggling with a function that should read all the pages of my API call, where I don't know the amount of the pages.
 
But when I try it, my query gets a list of hundreds of lists (pages), but most of the are empty. In this special case there are only 2 pages
 
Where is my issue, that he read pages, that actually not exists and have no content?
 
Here are some screenshots of my setup.
 

 
Can anybody help? 🙂

 

Thx Flo

3 Replies

  • Your code looks ok, but please understand that it is impossible for us to troubleshoot your API connection without having access.  Maybe you are receiving empty strings back instead of nulls ?

  • FlorianF's avatar
    FlorianF
    Frequent Visitor

    Hi Ibendlin,

     

    I crated a text environment with some data. Maybe you can test it with that.

     

    API URL: https://ffdevelop.weclapp.com/webapp/api/v1/...

     

    Authentication is basic:

    Username: *

    Passwort (Token): 082d72cd-b804-45b3-a100-a8f74d267879

     

    Maybe you find a solution. 🙂

     

    Thanks!!