Original Data Source
Create a normal Microsoft Graph data source and select the data you want to paginate over. For example:
https://graph.microsoft.com/v1.0/users?$top=999
CODE
Don’t forget to increase the maximum page size to 999
Paginated Data Source
Create a second data source of type Paginated Data Source
and select the original Microsoft Graph API data source.
The pagination type here is called Follow URL
because the URL of the next page will be returned with each response.
URL Selector
Define the location of URL for the next page
$['@odata.nextLink']
CODE
Result Selector
Define the location of all records for each page
Finish Condition
The Graph API will send a follow URL until the last page. So select Empty Target
as a finish condition
Finish Target
In case the Graph API doesn’t send a URL back we know its the last page and finish the pagination
$['@odata.nextLink']
CODE

Now testing the data source should return a valid result, which makes the data source ready to use.