Forum Discussion
kridue
3 years agoNew Member
Building a looping API Post call based on query results
Hi! I am using two POST api calls to get data. The first call, "Start ExecuteAsyncSingleQuery" starts my "session" and returns my first batch of data. It also tells me wether or not there are m...
v-jingzhang
3 years agoCommunity Support
Hi kridue
When you want to loop the second query, which part in the POST request will be changed in every loop? I saw in the second query, it has QueryId in the body. I think it is from the response of the first query. But in the response of the second query, it doesn't have a QueryId. We can know whether or not to continue looping according to that HasRemainingRows is true or false. But some part in the url or body should also be updated to send a different POST request. Can you clarify which part needs to be updated in a new loop?
Best Regards,
Community Support Team _ Jing