Weekly
Get a weekly OneDrive storage report
Each Monday you see how much storage you're using and which files changed last week.
- Runs
- Weekly
- Apps
- OneDrive
- AI
- Not needed
- Access
- read
Send this to your assistant
Create a ClickRuntime automation: every Monday at 9am, email me my OneDrive storage used and a list of files changed in the last 7 days.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
An IT administrator at a firm of 60 people notices OneDrive storage is almost full and has no idea why. A few users keep video projects, someone synced an entire photo library, and a shared folder doubled in size over a month. Meanwhile managers cannot say which important documents were touched last week, because OneDrive offers no single view of changes across the drive.
Every week, the drive's quota is read (total, used, remaining and deleted items), then the delta feed is run from last week's saved token to list the files added, edited, moved or removed since. The report goes out as one email with the storage numbers and a list of changed files, and the new token is stored for next time.
It is useful for IT admins, small business owners and team leads who share a drive and want to see activity at a glance.
What you get out of it
Storage problems seen before they bite
Seeing usage climb from 70 to 85 percent over three weeks gives you time to clean up or buy space, rather than discovering the limit when saving fails. That early warning gives you time to archive, clear out or buy more space on your own terms, not in a panic.
Growth has a visible cause
The list of recent changes points to the folder or person behind a sudden jump, which makes the conversation about cleaning up concrete. That means you can speak to the person responsible with facts at hand, and you can decide what to archive.
Important changes are not missed
If a contract or a price list was edited or deleted this week, it appears in the report, which helps catch accidental overwrites quickly. That is a useful safeguard, since a file can often be restored when you act within days and not months.
No manual digging through folders
Gathering this data by hand means sorting by size and date across folders. A weekly email provides it without any investigation. A weekly email does this work for you and puts the answer in front of you every Monday.
Trends are easy to compare
A series of weekly reports shows storage trends and activity patterns, which supports decisions about licenses and quotas. This evidence helps when you are deciding whether to buy extra licenses or ask staff to archive old work.
How it works
What happens, step by step
Every Monday, ClickRuntime checks how much of your OneDrive storage you are using.
It lists the files that changed since last Monday's report.
You get one email with your storage use, such as "412.6 GB of 1024 GB (40%)", and the changed files.
Before it runs live
- Connect OneDrive
What you get
Build your own
Need it to work differently?
Your own rules
Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.
Any number of apps
One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.
AI where it helps
Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.
On a schedule or on each event
Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.
Changes you can ask for
- Run it at a different time, more or less often, or only on weekdays
- Add an AI step, for example to summarize, sort or draft a reply
- Add another app, for example also send it to Slack
- Combine it with other OneDrive steps into one automation
Under the hood
The code that runs this automation
from clickruntime import on_trigger, credentials, http, state, notify
GRAPH = "https://graph.microsoft.com/v1.0"
@on_trigger
def run(event):
h = {"Authorization": f"Bearer {credentials.connection('microsoft', 'work')}"}
quota = http.get(f"{GRAPH}/me/drive", headers=h).json()["quota"]
url = state.get("delta_link") or f"{GRAPH}/me/drive/root/delta?token=latest"
changed = []
while url:
res = http.get(url, headers=h).json()
changed += [i["name"] for i in res["value"] if "file" in i]
url, delta = res.get("@odata.nextLink"), res.get("@odata.deltaLink")
state.set("delta_link", delta)
used = f"{quota['used'] / 1e9:.1f} GB of {quota['total'] / 1e9:.0f} GB ({quota['used'] / quota['total']:.0%})"
notify.email_me("OneDrive this week", f"Storage: {used}\n\n{len(changed)} files changed:\n" + "\n".join(changed[:50]))
return {"changed": len(changed)}FAQ
Common questions
How are deleted files represented?
Does it report every single edit on a file?
Does it cover the whole drive or one folder?
What permissions does it need?
Does it need AI?
How many runs does it use?
Can I change how it works?
Related
You might also like
Archive old files from a temp folder weekly
Files that have sat untouched for months move to Archive, and you get a list of what moved.
See how it worksBack up an export to OneDrive every night
A dated copy of your data export is saved nightly, older copies are pruned, and you hear if it fails.
See how it worksRefresh a workbook in OneDrive every day
A workbook stored in OneDrive gets fresh values daily and you get the new total.
See how it worksKeep exploring
Set up “Get a weekly OneDrive storage report” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.