Every 15 minutes
Get told when a file is added to a SharePoint library
Your team hears about each new document in the library within about 15 minutes, with its name and a link.
- Runs
- Every 15 minutes
- Apps
- SharePoint
- AI
- Not needed
- Access
- read (Sites.Read.All or Sites.Selected)
Send this to your assistant
Create a ClickRuntime automation: every 15 minutes, check the Contracts library on our Legal SharePoint site and post any new files to #legal in Slack with the file name and a link.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A shared SharePoint library such as contracts, policies or project deliverables gets new files from many people, and the teams relying on them find out by accident. A new signed contract is uploaded and finance does not know for a week. An updated policy is published and the people who must follow it never see it. Checking the library by hand is tedious and unreliable, and SharePoint's own alerts are limited and depend on each person setting them up.
Every fifteen minutes the automation checks the library's drive for changes since its last check using the delta feature, picks out the newly added documents, and notifies your team with the file name, who added it and a link. It saves its place so nothing is announced twice. Operations, legal and project teams use it to be told about new files without watching a folder.
What you get out of it
Teams act on new files promptly
Finance can start invoicing when a signed contract appears, and a project manager can review a deliverable the day it arrives. Work that depends on a document no longer waits for someone to stumble on it.
Policy updates reach the people who need them
A new version of a procedure is announced to the team rather than silently placed in a folder. Compliance improves when people are actively told that something changed. A revised leave policy is announced to the staff who must follow it, not silently dropped in a folder.
Uses SharePoint's own change tracking
The delta query returns only what is new since last time, so it stays fast on large libraries. It does not scan every file on each run, which keeps the load on your site low.
One notification for the whole team
Instead of each person creating their own alert, a single message goes to a shared channel or list. Everyone sees the same thing, including colleagues who join the team later.
Spots misplaced or unexpected uploads
If someone adds a file to the wrong library, or something unexpected appears in a restricted one, the notice shows it fast. That can matter for confidentiality and for keeping libraries tidy.
How it works
What happens, step by step
Every 15 minutes, ClickRuntime checks your SharePoint document library for changes since the last check.
It picks out documents that are new, ignoring ones it has already announced.
Each new document is posted to #legal with its name and a link to open it.
Before it runs live
- Connect SharePoint
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
- Act only on the items that match your own rules, and skip the rest
- 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 SharePoint steps into one automation
Under the hood
The code that runs this automation
from clickruntime import on_trigger, credentials, http, notify, state, report_fetched
SITE_ID = "contoso.sharepoint.com,3333-cccc,4444-dddd" # Legal site
DRIVE_ID = "b!ContractsLibraryDriveId"
@on_trigger
def run(event):
headers = {"Authorization": f"Bearer {credentials.connection('microsoft', 'work')}"}
url = state.get("delta_link") or f"https://graph.microsoft.com/v1.0/sites/{SITE_ID}/drives/{DRIVE_ID}/root/delta"
first_run = state.get("delta_link") is None
items = []
while url:
page = http.get(url, headers=headers).json()
items += page.get("value", [])
url = page.get("@odata.nextLink")
delta_link = page.get("@odata.deltaLink")
new = [] if first_run else [i for i in items if "file" in i and "deleted" not in i
and i.get("createdDateTime") == i.get("lastModifiedDateTime")]
report_fetched(len(new))
if not new:
state.set("delta_link", delta_link)
return {"new": 0}
for f in new:
notify.slack(f"New contract: *{f['name']}*\n{f['webUrl']}", channel="#legal")
state.set("delta_link", delta_link)
return {"new": len(new)}FAQ
Common questions
Does it announce files that are edited or only new ones?
Does it work on subfolders inside the library?
What access does it need on SharePoint?
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
Get reminders about SharePoint list items due soon
Each Friday you see the list items due next week, so timesheets and reviews don't slip.
See how it worksSave a weekly trend report to SharePoint
Each Monday a report on what's trending in your field is waiting in your team's SharePoint folder.
See how it worksSee new job listings as they're posted
Jobs that match your keywords show up in a Slack channel, each one only once.
See how it worksKeep exploring
Set up “Get told when a file is added to a SharePoint library” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.