Hi!
I'm trying to create an automated flow for email notification when a new folder is created in the document library on Sharepoint, but not when files are added into the new folder.
I have tried using the "When a file is created in a folder (deprecated)" flow but notification is always triggered when files are added into the new folder. Is there any flows or trigger conditions that I can set to achieve my goal?
Thank you so much in advance!
P.s. I do not have any background in programming and trigger conditions confuse me terribly!
I have tried to refresh the Power Automate window but the same error persists. I am unable to open in a new inprivate window due to my company's policy.
One possible reason I can think of as to why your suggestion isn't working for me is that my Documents is listed as a document library and not a list. Please refer to the following screenshot for my site contents.
When I use "Cardiology Community", which is indicated as a list in the site content, the flow works.
Hi @wanyigan
I tried the same with the Documents library and it works please find the screenshots below and it worked for sub-folders.
Try to refresh the Power Automate window or open in a new inprivate window and test it out.
So sorry @sudharsan1985 but it seems that the error remains even if I use Documents.
Please also correct me if I'm wrong - if the flow accepted "Documents" as the list name, the same issue persists for me. The system is unable to trigger notifications when a new sub-folder is added to "Documents > Study Meetings > Cardio-Renal" folder.
I had entered the name of the folder for the flow.
Here's the folder name for your reference.
Hi @wanyigan
Please don't fetch the name from the url, navigate to your document library, capture the name that is displayed. Like the below
Hi @sudharsan1985!
Really appreciate your prompt responses!
However, the "List Name" field does not recognise names of document libraries. Please refer to the following screenshot for the error message.
Hi @wanyigan
You can use the trigger named When an item is created and while choosing the List Name select the Custom Value and enter the name of the document library you want to check for folder creation. There is a property named IsFolder which will be true when folder is created and false when a file is created. Using this property you can implement your business process only if the IsFolder property is true.
Try the above and let me know if you have any clarifications.
Hi @sudharsan1985!
Thanks for the reply and suggestion!
However, I'm looking to send out notifications only when new folders are created so as not to bombard the users whenever there are more than one file uploaded to the folder.
For e.g. My company would like to upload the materials for Quarter 1 meeting. The ideal situation is to trigger email notifications when the folder "Q1 2024" is created. Files added to the Q1 2024 folder will not trigger any notification.
Is there any way around it?
Thank you!
Hi @wanyigan
Can you please try to use the trigger named When a file is created or modified (properties only) which will trigger even in the sub-folder level. You will be able to get the properties of the file for which it is triggered and with that you can design your business logic.
WarrenBelz
146,601
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,942
Most Valuable Professional