Hi
I'm hoping someone can give me some assistance with this. I'm new to API flows.
I have an API flow which calls 3 datalake APIs .
The submit box calls the DATAFABRIC/compass/v2/jobs/ API
The JobStatus box calls the DATAFABRIC/compass/v2/jobs/{queryId}/status/ API
The Result box calls the DATAFABRIC/compass/v2/jobs/{queryId}/result/ API
I'm submitting a job to the Datalake API (Select * from table where PI_CODE = 'X' and date = 'Y') and passing the QueryID from the API response to the status API.
I've added the JobStatus box to the do while loop so I can loop until the status from the response is FINISHED. However with the JobStatus box within loop, I'm unable to access any information from the response to add to the do while parameter. I've tried typing the value ${JobStatus.Body}.status but that gives an error.
I can get this to work by creating a dataflow which calls a workflow. In the workflow the looping works and returns the FINISHED status I'm looking. However I'd prefer to do this in an API flow. Is it possible ?