I run APIs against a cloud platform daily that extracts many Megabytes of information. To set this up, I first run a request for a job ID. The request body json I give this request is a date range only.
The API payload returns a Job ID.
The Job ID is like an Order number, think of it that way. The Order ( Job ID ) takes time to fulfill. It could take 20 seconds to 2 or 3 hours.
I run an API that checks the state of that Job ID ( Order number ). When I get a state of "Fulfilled", then, I can run another API using that Job ID to extract the data. The data will not be ready to extract until I get that state of "Fulfilled".
I'm asking for assistance to iterate that API call for state until it has reached a value of "Fulfilled". Then, I go on to process the next API call.
I have a workflow that does the rest very well. But if I do not iterate that request for state API, but instead run it inline with the workflow, I may not get any data as the Job ID ( Order number ) is not ready.
Thank you for any assistance.
Chris