
gykk9 (gykk9) asked a question.
Is it possible to create a while loop structure for pagination through workflows?
Lets say we have to run through a get request for thousands of users info. So we limit the amount the get request obtains to 300 users at a time. How would we structure pagination through workflows?

This could probably be achieved by:
It worked for me. Just an FYI, if someone is trying to implement the same and return the collated data after recursive flow then make sure the parameter name of the recursive flow match with the variable name used to pass the list.
Hi Sandeep,
It would be awesome if you could share your flow (Pagination) with the community ? 😃
Even a screenshot would be great !
Here's the recursive child flow. This is always scope to optimize this further. Hope will helps.
Thanks Sandeep,
Your screenshot is a little bit "small", don't know if it's due to a resizing process within that web page 🙂
I also find an interesting link with Okta workflows pagination : https://github.com/bgarlow/workflows
I am a little late to this party. As Stephane mentioned, the image is quite small and I am not able to make out the steps. I have not built a recursive workflow yet, so I was looking for a bit of help here.
I tried to access the flopack Stephane linked to, but it looks like Okta has a known issue with exporting/importing recursive workflows. I appreciate any help.
I have managed to get the recursive workflow running, but for some reason the parent workflow isn't getting the final, union list. It's getting the first list. If I look at the recursive history, there's only one return and that is when there is no next url. It shows the list that should be returned, but that's not the list that shows in the parent workflow.
Hi William,
On our side we have revamped a bit recursive flow provided by Okta and now we are using it with a bunch of specific API calls (Mappings, Network zones, etc.) .
I uploaded it. Give it a try and any feedback would be appreciated
000PaginationRevamped
My apologies for the long delay. Thank you for the file. I have imported it and will run though it!
Hello I'm facing the same issue, I would like to DELETE, Deprovisoned accounts that have not logged-in in the last 366 days. Preventing the API stop at 200 hits, I was looking also for pagination in the Workflow (or a mother solution to go through all the account on a daily basis with e scheduled workflow) I'm already halfway, but the pagination I'm not able to get it to work for me. The workflow from Sandeep is too small and the Attached file from Stephan I'm unable to import in the Okta Workflow control.