Hello all..
I have a library where multiple people are supposed to upload ONLY xlsx files. I need a flow that:
1. Is triggered when a file is uploaded that is NOT an xlsx (excel) file.
2. Sends and email to the person that did the upload and to 2 other people (administrators of the library). That has a standard "blurb" about the wrong file type, and has the name of the file, and the date and time the wrong file was uploaded.
Thanks All
Hi @12strikes
Thank you for posting.
According to your description, you would like to restrict users only upload excel file to library. If any misunderstanding, please kindly let me know.
Here is the flow details:
Hope the content above may help you.
Thanks
Anna
TL;DR: Use the expression to find if file is an .xlsx : endsWith(triggerOutputs()?['headers/x-ms-file-id'],'.xlsx')
Details:
Step 1 : Automated Flow (when a new file is created in SharePoint Folder)
Step 2 : Condition using expression listed above
Step 3 : if false, send an email saying wrong file type
Step 4 : if true, do nothing
Under this method, you will be wasting your daily Flow runs allowance as whenever an .xlsx is uploaded the Flow will run and do nothing. To mitigate this, you can add a trigger condiiton to your flow.
--
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Michael E. Gernaey
497
Super User 2025 Season 1
David_MA
436
Super User 2025 Season 1
Riyaz_riz11
244
Super User 2025 Season 1