web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How force naming conve...
Power Automate
Suggested Answer

How force naming convention automatically on files when created or uploaded?

(1) ShareShare
ReportReport
Posted on by 4
Dears , 

I need to set a flow role in SharePoint to control how users name the files they upload or create inside some of main folders or subfolders — for example, enforcing a specific naming convention like (e.g., 2025-Sales_AccountName_DO Initials_SizingSheet_FirewallSolution_v1_Date), which include some fixed part and variable parts:
Fixed parts:
2025-Sales
_DO Initials
_SizingSheet
_FirewallSolution
 
Variable parts:
Account Name (changeable)
v1 or v2 (version)
Date (changeable date)

Trigger:
Use “When a file is created or upload in a folder” (SharePoint connector).
Target the Client Business needs subfolder.
Condition:
Use Expression to validate and check the file name.
Example Expression:
(2025-Sales_AccountName_DO Initials_SizingSheet_FirewallSolution_v1_Date)
This checks:
Starts with 2025-Sales_
Account Name (letters/numbers/spaces)
_DO Initials_
_SizingSheet_FirewallSolution_
v1 or v2
Date in YYYY-MM-DD format

Actions:
If Yes: Do nothing (file is valid).
If No:
Send email to uploader: “Your file does not meet naming convention. or a notification will appear for a user with the correct naming convention.
 

 
Categories:
I have the same question (0)
  • developerAJ Profile Picture
    4,763 on at
    You can do it the way you mentioned and send adaptive card for collecting inputs from the users
     
  • Suggested answer
    wolenberg_ Profile Picture
    1,476 Super User 2026 Season 1 on at
     
    SharePoint doesn’t have a built‑in “naming policy,” so Power Automate is the right way to enforce it.
     
    If you want stricter control, combine this with metadata columns (e.g., Account Name, Version, Date) and then use a flow to generate the filename from those fields. That way users don’t type the name at all the flow builds it consistently.
     

    Use a flow triggered on file creation, validate the filename with expressions, and either notify the user or auto‑rename to enforce the convention.

     

    If this helped or could help others in the community, feel free to give it a like or a kudo — it helps surface useful answers for everyone!

  • SA-27111331-0 Profile Picture
    4 on at
    Dears  and  , 

    Thank you for your reply.

    Please i will be appreciated if you share the steps to perform this task for me like ( how to done this ?) , because im not expert in power automate , OR it will be mush better if we can join a session to help me in this big task :).

    Awaiting your reply ASAP .

    Best,
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard