
Announcements
I want to build an automated flow which can give me the following information about the pages which were created or edited in the last 7 days in my tenant not just in on single site.
- Title
- URL
- Edited/Created By
- Edited/Created On
Hi @Usmannb,
I would use the Graph API for this. Microsoft introduced a new methods for listing pages as well. Try combining these two:
https://learn.microsoft.com/en-us/graph/api/sitepage-list?view=graph-rest-beta
https://learn.microsoft.com/en-us/graph/api/site-list?view=graph-rest-1.0
Below is an example of that approach
The below setup works with top 999. If you have more than 1000 you need to handle the pagination.
I also tried a $filter query parameter in the list pages method, doesn't seem to like that. Otherwise the filter array action wouldn't be needed 😁