We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

API Loop/Macro question

craigja
11 - Bolide

I have an in-house developed API that returns data 25 records at a time.  It doesnt tell me how many pages there are but there is a hasMore value thats set to 1 and there is also a link to the next set of records which has &offset=25 at the end of the URL, then &offset=50 etc etc.  How do I put this inside a macro so it runs till the hasMore value is o?

3 REPLIES 3
abacon
12 - Quasar

@craigja You will need an iterative macro in your workflow. Here is a video on how to create on - https://www.youtube.com/watch?v=AByfTPqrUrQ

 

What you need to do is set the macro to run, check if the hasmore value is 1, if so, run through again and add 25 to your offset value that gets passed through.

 

Bacon

alexnajm
18 - Pollux
18 - Pollux
craigja
11 - Bolide

Great thanks guys

Labels
Top Solution Authors