Describe the problem/error/question
Hello everyone, I am creating a workflow for obtain Users from Microsoft graph.
For obtain users there is this endpoint: https://graph.microsoft.com/v1.0/users
And the limit is 999 contacts each request.
My database is 5k ish, and It’s growing, so we can say we don’t have a fixed number.
The pagination in Microsoft Graph works with a page.link, that it’s provided in the first request you do.
Then you need to use this link for scroll the page and search.
What is the error message (if any)?
There is no error, but I need to find a proper way to scroll all the users I am obtaining from the first request.
My idea was to obtain every time the
{{ $(‘Get Users’).item.json[“value”].length }} (number of users obtained from the call)
and compare with
{{ $(‘Get Users’).item.json[“@odata.count”] }} (number of all the users)
Do you have any idea?
Let me know if you need anythings
Please share your workflow
Share the output returned by the last node
Information on your n8n setup
- n8n version: 0.231.3
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app):
- Operating system: