Forum Discussion
10 Replies
- marjan_karafiloContributor
Hi @amardeep2021 ,
As @bojanvelevski said, pagination should do the job.
Check the documentation about the API you are using and see if it supports pagination.Here REST Get you can find more about it.
Look for the attributes “Has Next” and “Next URL”.Regards
- bojanvelevskiValued Contributor
Does increasing the Read Timeout works for you?
- amardeep2021New Contributor III
No. It failed after 6 hours of execution. I am wondering what could be the best solution to overcome this Read time out failure.
- bojanvelevskiValued Contributor
It’s highly likely that the API supports pagination, or some other way of chunking the requested data. That’s where I would go first. It will be helpful if you share the name of the API you are using, that’s it if you are able to.
- amardeep2021New Contributor III
This is the API account setting I am using. Basic Auth Account.
- amardeep2021New Contributor III
Hi All,
Thanks for your suggestions.
Yes REST GET has ‘Has Next’ and ‘Next URL’
Regards,
Amardeep Shanmugam. - amardeep2021New Contributor III
I am trying to pull data from Workday API. I don’t have ‘Has Next’ and ‘Next URL’ expression, it’s blank. Just to clarify. Does this gives anyone on what should be the solution.? Please let me know.
- amardeep2021New Contributor III
Moreover, I have only these information in output preview of REST GET snap during validation. I don’t see offset in there. Please let me know with this information how can I implement pagination to avoid failure?
- j_angelevskiContributor III
Hi @amardeep2021,
By default the ‘Has Next’ and ‘Next URL’ are blank because you need to specify the ‘Has Next’ condition and ‘Next URL’ to be called. And as I can see, this is an empty response you are getting. Which endpoint are you trying to call ?
And, you should really look into the documentation of the API itself. That’s the only way to find how you can use pagination.
- delContributor III
@amardeep2021, it looks like you’re calling a Workday RaaS (web-enabled) report. These Workday reports do not natively support pagination. The Workday Community site has multiple Brain Storm requests for a pagination feature for the reports, but Workday has not addressed these requests.
With that said, you may can work with your Workday Report team/developers to creatively develop a report with pagination/chunking capabilities.
For example, if the report data source records have timestamps or effective dating, the report team could provide prompt fields whereby you can include start and end times in the URL query string which would allow you to chunk the data by time ranges. Depending on the data you’re pulling in, there may be other creative ways to chunk the data to provide pagination capabilities.
Likewise, if this post is related to your other post about reducing the columns pulled in from the API using REST GET, the report team can reduce the number of columns in the report output.