Skip to content

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>.

Paste it into your assistant. It tells you what it will send or change before it runs live.

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

  1. When a file is sent to your trigger link, for example from a form, ClickRuntime picks it up straight away.

  2. It finds today's folder inside Uploads in your OneDrive, and creates it if this is the first file of the day.

  3. 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

RunsThe moment it happens
Save form uploads into dated OneDrive foldersjust nowSucceeded
OneDrive · Uploads/2026-10-19signed-contract-northwind.pdf · site-photo-03.jpg

Build your own

Need it to work differently?

This template is a starting point. Copy the prompt and change it, or describe a different automation from scratch, with your own conditions, more apps or an AI step. Your assistant writes it, tests it and runs it on ClickRuntime.
  • 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

This is the Python script that runs each time the automation starts. Your AI assistant writes it for you when you send the prompt, and you allow each step in your assistant. To change how the automation works, describe the change to your assistant and it updates the script for you. For every function it can use, see the script reference.
save_webhook_file_uploads_into_dated_folders.pyexample
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?
OneDrive can be told to rename the new file, for example by adding a number or timestamp, so the earlier upload is not overwritten. Naming rules are set when you build it. Naming rules are set once, and every upload follows them.
Is the dated folder based on my time zone?
The folder name uses the date in the time zone configured for the run. If your team spans several time zones, set the one that matches the day you want files grouped under. Choose the zone that matches your records.
What kinds of files can be sent to the link?
Any file type OneDrive accepts, including PDFs, images and spreadsheets. Very large files may be limited by upload size restrictions on the sending service or by the OneDrive API's simple upload limit. Check the sender's own limits for large files.
What permissions does it need?
read+write. Nothing else in your accounts is used.
Does it need AI?
No. It runs without AI, so it doesn't use your plan's AI allowance.
How many runs does it use?
One run for each event the app sends.
Can I change how it works?
Yes. Describe the change to your AI assistant, for example a different schedule, channel or filter. It updates the automation, tests it and tells you what changed.

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.