Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Loop in tRestClient (check value in row)

Hello everyone!

 

I has this flux: tloop -> iterateToFlow -> RestClient.

I need execute this flux when there is value in execution.

 

0683p000009M7hH.jpg

 

I need tloop to just execute while it comes back from api, if there is no return I need to stop loop

 

0683p000009M7aM.jpg

I try put tjava, but I don't know where to put the component.

 

This api request has 94 pages, this loop start 1 and stop at 94 based on page records.

 

0683p000009M7hM.jpg

 

Each page brings me 100 'records', if I loop it works fine, but I need it automatically as it will come online on a server using crontab.

Labels (5)
11 Replies
Anonymous
Not applicable
Author

Sorry, follow the image as requested.

 


0683p000009M8aT.jpg

Anonymous
Not applicable
Author

For testing, need to make some testing to make sure each API calling returns different records, and one page has 0 record. To do it, add a tLogRow after tExtractJsonField to print the records on the console.