web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to get URl SharePo...
Power Automate
Unanswered

How to get URl SharePoints analytics for the last 7 days ?

(1) ShareShare
ReportReport
Posted on by 5

Hello,

I'm trying do create a flow with PowerAutomate to put the analytics of my SharePoint sites in a Excel table.

I want to have a scheduled flow every 7 days. I have succeed to do it with this HTTP request :

/_api/v2.1/sites/***.sharepoint.com,948e3cf5-0de5-4683-88fb-0275932e183b/oneDrive.getAggregatedAnalytics?startDateTime=2023-06-28T10:20:07.849Z&endDateTime=2023-09-25T10:20:07.849Z&$expand=LastSevenDaysTopItemsByViewers($expand=pages($expand=analytics($expand=lastSevenDays)),documents($expand=analytics($expand=lastSevenDays)),news($expand=analytics($expand=lastSevenDays))),accessStatsByHour,platformStatsByDay,accessStatsByDay($expand=lastSevenDays,lastThirtyDays,lastNinetyDays,allTime,itemActivityStats)&select=*

The issue is that it appears always with the last 90days in my Excel.

Have you a solutions to have it only for the last 7days?

Thanks

Categories:

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 249 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 202

#3
David_MA Profile Picture

David_MA 180 Super User 2026 Season 2

Last 30 days Overall leaderboard