New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Requirements for the API implementing paged results #30744
Comments
Hi @Heer-Boaz Thank you for your feedback! We will review and update as appropriate. |
@ecfan Just checking if we need to define this. |
I've got it working by trial and error. Requirements for returning paginated responses (JSON)JSON-body of the response needs to include the properties:
The HTTP-response code is 200. Example paginated API responsesResponse #1
Response #2
Response #3
Example logic app task output
|
@Heer-Boaz I am glad that the issue is resolved. For now will proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue. |
@Heer-Boaz & @DixitArora-MSFT, thanks for raising this issue. I think adding this info would be useful, so I'll open a work item. Thanks again! |
Any progress on this? Pagination only works if the Payload results have "value". |
My API (OKTA) returns rel="next" url in the RESPONSE HEADER. |
Unfortunately, the API I am using has the same issue as @mshparber. The "nextLink" and "value" keys are called "next" and "results" respectively in the model I am using. I do have a work around, granted it is pretty annoying. That said, I am pretty new to programming so take it easy on me if this solution is a bit messy. Here are the steps:
Once the offset exceeds the count, the loop will stop and you now have an array of your paginated JSON (response). I really wish there was a way to tell the HTTP action that a key in your payload is the same as the value key the HTTP action uses to paginate responses. However, this workaround has been a viable solution in my automation development. I hope this helps! |
There appears to be no description of the requirements on how to support pagination from the perspective of the API that is being invoked by Logic Apps.
Now, we are getting an "InvalidPageResponse", related to a property 'value' missing in the result body.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: