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.