The moment it happens
Save form uploads into dated OneDrive folders
Files posted to your link are filed into a folder for that day.
- Runs
- The moment it happens
- Apps
- OneDrive
- AI
- Not needed
- Access
- read+write
Send this to your assistant
Create a ClickRuntime automation: give me a link; when my form posts a file to it, save it to OneDrive Submissions/<today's date>.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
An events coordinator collects receipts, ID scans and signed waivers from attendees through a web form, and each submission needs to end up somewhere sensible. The form tool dumps files into a single shared folder with names like upload(14).pdf, or sends them as email attachments that get forgotten. Weeks later, finding the waiver a specific person signed on a specific day means opening files one by one.
When a file is posted to your unique link by a form, a script or another service, it is received immediately, a folder named for that date is created in OneDrive if it does not already exist, and the file is uploaded into it. Each day's uploads end up together, in the right place, without anyone touching them.
It also works for scanned documents from a phone shortcut, a lab instrument export, or files from a client portal.
What you get out of it
Documents are filed the moment they arrive
Nothing waits for someone to copy it from an email or a form dashboard, so the file is already in the correct folder when you go looking for it. That reduces the risk that a waiver or receipt is overlooked because it sat in a queue.
Retrieval is by date, not guesswork
If a dispute arises about a document received on the 14th, you open that day's folder rather than searching across thousands of similarly named files. The same folder structure works whether the file came in this morning or three years ago.
A neat archive builds itself
Dated folders produce a chronological archive that looks organized, which helps during audits and when a new colleague takes over the task. That tidy structure is also a sign of good records management, which is valued in regulated industries.
Attachments are no longer stuck in email
Pulling files out of inboxes and into OneDrive means they are backed up, searchable, and reachable by people who were never copied on the message. OneDrive's backup and sharing options then apply to every upload, which an inbox cannot offer.
Fewer lost submissions
Because each upload goes straight to storage, a form submission cannot get buried under unrelated mail or deleted with a cleared inbox. That reliability matters most when the files are legal documents, payment proofs or application forms.
How it works
What happens, step by step
When a file is sent to your trigger link, for example from a form, ClickRuntime picks it up straight away.
It finds today's folder inside Uploads in your OneDrive, and creates it if this is the first file of the day.
The file is saved into that folder, so each day's uploads sit together.
Before it runs live
- Connect OneDrive
- Paste your automation's link into the other app's webhook settings
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 OneDrive steps into one automation
Under the hood
The code that runs this automation
from datetime import date
from clickruntime import on_event, credentials, http
GRAPH = "https://graph.microsoft.com/v1.0"
@on_event
def handle(event):
h = {"Authorization": f"Bearer {credentials.connection('microsoft', 'work')}"}
folder = f"Uploads/{date.today()}"
http.post(f"{GRAPH}/me/drive/root:/Uploads:/children", headers=h, json={
"name": str(date.today()), "folder": {}, "@microsoft.graph.conflictBehavior": "replace"})
name = event.json["filename"]
data = http.get(event.json["file_url"], timeout=120).content
item = http.put(f"{GRAPH}/me/drive/root:/{folder}/{name}:/content", headers=h, data=data).json()
return {"saved": item["webUrl"]}FAQ
Common questions
What happens if two files have the same name?
Is the dated folder based on my time zone?
What kinds of files can be sent to the link?
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
Hear when a file lands in a OneDrive folder
You get an email each time a new file appears in the folder you're watching.
See how it worksArchive 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 worksKeep exploring
Set up “Save form uploads into dated OneDrive folders” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.