Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Iterative Macro: If result count = 100, Loop, else, output results

PSmitty334
6 - Meteoroid

Hey All,

 

I'm calling an API that doesn't give me "next" "count" or "page" results, all I can do is keep calling the max records until the count is less than the API cap, then I know I have all the data.

 

(Capture2.png) The workflow never stops, I get all of the data, but many many duplicates of the same record. (there are only 800 ish entries and the macro errored after 50 iterations).

 

Thanks!

1 REPLY 1
PSmitty334
6 - Meteoroid

Apparently the System.IterationNumber was causing an infinite loop on the first few iterations, updating the existing $skip value via formula fixed the issue.

Labels
Top Solution Authors