How to build a file naming system with document management software

Content authorBy Toomas PihlPublished onReading time11 min read
Professional man in glasses presenting a file naming system and document management software strategy in an office meeting

This article explains how to replace inconsistent filenames in a SharePoint library with a standard you can actually enforce. It covers the audit and the naming pattern itself, while metadata carries everything a name shouldn't and the Power Automate flow checks uploads before they pollute the library.

Why filenames fail

Every SharePoint library eventually collects the same wreckage: "Contract_FINAL_v3_updated_REALLY final.docx" sitting next to "contract latest.pdf". The cause is rarely carelessness. It's the absence of a rule that document management software can check, so each person invents their own.

Three habits do most of the damage. Dates get written five different ways, which destroys sorting. Version labels live in the name instead of the document management software. And people try to cram every searchable detail into the filename, which pushes the path toward the limit where files stop syncing entirely.

Names are short and boring. Everything else, from status to renewal date, belongs in fields the document management system can filter on. That split is what makes the whole thing enforceable, and the rest of this guide builds on it.

Audit the current library

Before designing anything, find out what you actually have. Pull a sample of 100 to 200 files spread across departments and document types and export the library view to Excel. You're looking for the patterns people already use, because a convention that fights existing habits gets ignored.

Record what you find in a single sheet. The columns that matter most:

  • Date formats in use, and how many files carry no date at all

  • Abbreviations that appear repeatedly (HR, Fin, POA, MSA) and which ones conflict

  • Files containing "final," "latest," "v2," or "final two"

  • Names holding invalid characters. Microsoft blocks " \ : < > ? / | and leading or trailing spaces in file and folder names

  • Duplicate or near-duplicate names in different folders

Ask a handful of people how they actually find documents. Some search by counterparty, some by month. Those answers tell you which fields have to be visible and which can move to metadata without anyone noticing.

Also check your path lengths. The entire decoded path plus filename can't exceed 400 characters in SharePoint Online, and each segment breaks at 255 characters if files sync to a desktop. Deep folders with long names are already close to the edge in most legacy libraries.

Design for document management software

A locked document symbol at the center, surrounded by icons for various document types on a soft gradient background, conveying secure document management.

Now write the convention for document management software. The goal is a name that survives being emailed or attached to a court filing, while the richer classification stays inside the platform. A file called "HR_Policy_2026-01-14.pdf" still tells you something on a stranger's desktop. A file called "doc1.pdf" with beautiful metadata tells you nothing the moment it leaves the library.

So the naming rule covers identity only in the document management platform. Who owns the file and what stage it's at: none of that goes in the name. Your document management system handles those through columns, and columns can be filtered and grouped in ways a text string never can.

Keep the pattern short enough that it doesn't eat the path budget. Around 60 to 70 characters for the name itself leaves room for folder depth and the site URL, which matters if anyone syncs the library locally.

Documents shouldn't be manual work.

Standardize how your business creates, manages, and signs recurring documents - without complex enterprise software.

Set a fixed order

Pick a sequence and never vary it. A pattern that works across most business libraries is department and document type, with counterparty and date:

HR_Contract_NordicSteel_2026-02-03.pdf

The date goes last and uses the ISO 8601 extended format, YYYY-MM-DD. That's the whole reason to use it: 01/05/22 could mean January 5 or May 1 based on who wrote it, while 2022-05-01 means one thing everywhere and sorts chronologically when you sort alphabetically.

Fields can be dropped, but only from the middle and only by rule. Internal documents with no external party skip the counterparty segment, which gives you Fin_Policy_2026-01-20.pdf. Undated reference material skips the date. What you never do is reorder, because the moment order becomes optional, sorting stops working and your validation flow can't tell a compliant name from a broken one.

Standardize terms and separators

Publish a closed list of approved abbreviations and treat it as the only vocabulary allowed. HR and Fin. Contract and Invoice. Someone requests an addition when a term is missing from the list. Twelve people abbreviating "agreement" as Agr, Agmt, and AGR will destroy a naming system faster than any other single habit.

Then fix the mechanics:

  1. One separator only. Underscores between fields, no spaces, and hyphens reserved for the date. Mixed separators break any pattern match you write later.

  2. PascalCase inside a field for multi-word values, so "Nordic Steel" becomes NordicSteel.

  3. A hard length cap of 70 characters for the name, which protects the 400-character path limit.

  4. Nothing outside letters and numbers, with underscore and hyphen. Beyond Microsoft's blocked list, "#" and "%" need to be enabled by an admin in some tenants, and reserved names like CON, PRN, AUX, and anything starting with ~$ are rejected outright.

Write these rules on one page. If the standard needs three pages, nobody will follow it, and a rule nobody follows isn't a standard.

Use document management system metadata

Here's where the detail you stripped out of filenames goes. Create site columns in your document management platform for everything that changes over a document's life or that people filter by in document management software and the document management system:

  • Owner (person field, so it resolves against your directory)

  • Status (choice: Draft, In Review, Signed, Superseded)

  • Project or matter (lookup to a projects list, which prevents typos)

  • Retention class (choice, tied to your retention labels)

  • Agreement type and renewal date (the renewal date as a proper date column, so you can build a view of everything expiring in 90 days)

Make the critical ones required on upload. When a column is mandatory, SharePoint prompts the person immediately, and you get clean data at the moment of creation. Set default values per folder or per content type where you can, since the fewer fields someone has to fill, the more likely they'll fill them correctly.

This matters more than it used to. Gartner analysts put the share of enterprise data that's unstructured at 70% to 90%, and governing it is what makes documents findable by anything other than the person who saved them.

Configure document management software

Metadata solves the classification problem. Version history solves the "final" problem, and it's the setting most libraries never bother to explain to the people using them.

Turn on versioning in library settings and cap the number of major versions you keep. Some organizations run a limit of 25 versions by default and trim older, inactive content down further to control storage. Pick a number and tell people what it means: editing a file in place keeps every prior state, retrievable and timestamped, without a single new filename.

Then show them where it lives. Open the file's version history and restore an old version. Most "final_v4" files exist because the person didn't know the document management software already did this on the document management platform. One five-minute demo removes the habit better than any policy memo.

The same session covers how to find things. Sorting by name works because dates are ISO-formatted and the field order is fixed. Filtering by Status or Owner works because those are real columns. And search indexes both the name and the metadata, which means a short filename costs you nothing in findability once the columns are populated. Add indexes to the columns you filter on most, because filtered views on large libraries need them once item counts climb.

Documents shouldn't be manual work.

Standardize how your business creates, manages, and signs recurring documents - without complex enterprise software.

Test before migration

Do not rename anything in the legacy archive yet. Apply the convention to one library with 200 to 500 files from a single team and try to break it.

Run through the things that actually fail in production:

  • Sort by name and confirm chronological order holds

  • Search for a counterparty name and check that results return from both the filename and the metadata column

  • Sync the library to a desktop and watch for path-length or character errors

  • Open older shared links after a rename, because renaming a file changes its URL and can break links people have saved

  • Upload a file whose new name matches an existing one and see what the library does in document management software on the document management platform

Then test comprehension, which is the part most pilots skip. Give three people who weren't involved in designing the convention a document and the one-page rule, and ask them to name and file it. If any of them hesitates or gets it wrong, the rule is unclear. Fix the wording and repeat.

Refine until the pilot library goes a full week without a noncompliant upload. That's your signal the pattern is teachable, and only then does automation make sense.

Enforce rules in SharePoint

A convention that depends on memory decays within a month on a document management platform. Automation is what holds it in document management software, and Power Automate gives you the hook: a flow triggered when a file is created in the library.

Structure it in three branches:

  1. Validate. Read the filename without its extension and split on the underscore. Check the segment count and verify segment one against your approved department list and segment two against your document type list, with the last segment tested against the YYYY-MM-DD pattern. Confirm the total length sits under your cap.

  2. Rename what's safely predictable. If the department comes from the folder path and the document type is unambiguous, rebuild the name and update the file. Keep this branch narrow, because a wrong automatic rename is worse than no rename.

  3. Route the rest. For anything the flow can't resolve, move the file to a Review subfolder and send the uploader a Teams message that names the exact problem and shows one correct example.

Never let the flow delete or silently overwrite. Log every action to a SharePoint list with the original name and the reason for the decision. That log becomes your evidence during the rollout, as it shows which rules trip most often and which teams need a second training pass.

Be careful with the trigger. A flow that renames a file can re-fire on its own change, so add a condition that skips files already matching the pattern. Otherwise you get a loop that burns through your action quota over a weekend.

Roll out the standard

Publish the one-page rule with five worked examples, two of which are edge cases where a field is legitimately omitted. Examples do more teaching than explanation, so show a compliant contract and a name that fails with the reason attached.

Assign an owner for the rules. One named person approves new abbreviations and maintains the approved-terms list, with a monthly review of the exception log. Without that, the vocabulary drifts and the flow starts rejecting legitimate uploads.

Train by team. Fifteen minutes with the people who upload most, walking through their own documents, catches the objections that a generic session never surfaces. Watch the exception log for the first month and treat repeat failures as a design problem in your rules.

Migrate legacy files last, in phases, by team or date range. Start with active documents from the last twelve months, because those are the ones people search for. Archived material can keep its old names behind a metadata layer, since renaming a five-year-old file breaks links and gains you little. A phased migration also protects you against the copy limits in SharePoint, where a single move can't exceed 100GB or 30,000 files.

Add Agrello to workflow

Governed names and metadata survive the moment a document gets signed, which is usually where the chain breaks. Agrello is a document management system and e-signing platform that collects e-signatures using national e-ID or its own advanced electronic signature, then stores the executed file with the audit evidence attached via document management software. Its Word add-in sends documents for signature without leaving the editor and outputs ASiC or PDF, so your naming pattern carries through instead of being replaced by a vendor's reference number.

Set your convention first, then let signing and storage follow it. If you want the executed-agreement side of your document management software to hold the same standard, book a consultation with Agrello.

Documents shouldn't be manual work.

Standardize how your business creates, manages, and signs recurring documents - without complex enterprise software.

Shorten the identity fields before upload, and move descriptive details into required metadata columns. Keep the fixed field order intact. If a counterparty name causes the overrun, use its approved short form rather than removing the date or replacing it with a version label.

Use an approved identifier that distinguishes two documents with the same department, type, counterparty, and date. Add that identifier in a defined position in the naming rule, then record its purpose on the one-page guide. Don't add v2 or final, because version history tracks edits.

Identify saved links and shared references first, because a renamed SharePoint file has a different URL. Update the links that people still use, then rename a small batch and test access. Leave inactive archive material unchanged when its old name doesn't block retrieval.

Use a shorter folder rule that identifies the folder's purpose without repeating file-level details. Long folder names consume the same SharePoint path allowance as filenames. Document management software works better when folders provide broad context and metadata supplies the classification people need for filtering.

Keep the established filename and set its Status metadata to Signed when the executed copy replaces the draft. This preserves search and sorting consistency. Agrello can store the signed file with its audit evidence, so the signature record doesn't require a vendor reference number in the filename.

Schedule a Meeting

Book a time that works best for you and let's discuss your project needs.

You Might Also Like

Discover more insights and articles

Business professional reviewing a Word contract template for document automation in a modern office

Is This Word Contract Template Ready for Automation?

A Word contract template is ready for automation when you hold the rights to the current counsel-approved text and the document has a named owner and version. Every repeated value is a defined field and clause choices follow written rules, with a layout that survives test data. Technical readiness is not legal validity. Those are separate approvals.

Team member discussing document version control and efficient workflow management in a modern office

How to implement document version control without slowing team workflows

This article explains how to add structure to shared documents without turning every edit into an approval request. It walks through mapping the lifecycle and matching restrictions to each stage, with practical notes on document version management and signed records.

Business professional explaining the three eIDAS electronic signature levels during a team meeting

How Do the Three eIDAS Signature Levels Differ?

The three levels differ in how much they prove. A simple electronic signature (SES) records that someone signed. An advanced electronic signature (AdES) ties that act to an identified signer and makes later changes detectable. A qualified electronic signature (QES) adds a qualified certificate and a certified device, which gives it handwritten-signature equivalence across the EU.

Business team collaborating around a table during a strategy workshop with a whiteboard in a modern office

How to design a scalable sharepoint document management workflow

This article walks through the sequence for building a sharepoint document management workflow that holds up as volumes grow. Planning before configuration and information architecture come first, and query performance and permissions follow. Approval automation in Power Automate and electronic signatures through Agrello complete the sequence. Each step builds on the one before it.