Start Free Trial

Alteryx Designer Desktop Discussions

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

Iterative Macro - API Call - Status

Analyst323
8 - Asteroid

Hello,

 

I need to create an iterative macro to prevent the workflow from moving forward until the taskstate = "Complete"
I'd like to move away from delay timers as the processing time can be unpredictable. 


Attaching a screenshot of the results and the iterative macro I'm trying to get working. 

 

 

4 REPLIES 4
caltang
17 - Castor
17 - Castor

If you're on v2023.1 onwards, try Control Containers. It's sequential and easier to use in this case. 

 

Also, why iterative? It runs n times or reaches n? I don't see the connection here... 

 

More resources:

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
gawa
16 - Nebula
16 - Nebula

@Analyst323 

If you want to repeat sending API request, and check its status, Throttle tool might help you. If you set it "10 Records per minute", then 1 record is processed every 6 seconds.

You can copy the same API request in multiple rows, and send to Download tool through Throttle tool, then it will send API request every 6 seconds.

 

image.png 

Analyst323
8 - Asteroid

Thanks, I'll look into this solution. I wasn't sure if iterative made sense given I'm looking for a status change and the # of calls are unknown. 

Analyst323
8 - Asteroid

Reviewing control containers, I understand the conditional exception where I can have alteryx run the next container if the status = "complete". But if it's not complete, how would you suggest I run the api call again until the status is marked as complete?


Labels
Top Solution Authors