Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Notification trigger for new folder created on Sharepoint but not files added into the folder

(0) ShareShare
ReportReport
Posted on by 15

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!

  • wanyigan Profile Picture
    15 on at
    Re: Notification trigger for new folder created on Sharepoint but not files added into the folder

    Hi @sudharsan1985 

    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. 

    wanyigan_0-1704964590215.png

    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. 

    wanyigan_1-1704964663569.png

    When I use "Cardiology Community", which is indicated as a list in the site content, the flow works.

    wanyigan_2-1704964761960.png

     

     

  • sudharsan1985 Profile Picture
    1,325 on at
    Re: Notification trigger for new folder created on Sharepoint but not files added into the folder

    Hi @wanyigan 

     

    I tried the same with the Documents library and it works please find the screenshots below and it worked for sub-folders.

    sudharsan1985_0-1704964092645.png

     

    sudharsan1985_1-1704964146118.png

    Try to refresh the Power Automate window or open in a new inprivate window and test it out.

     

  • wanyigan Profile Picture
    15 on at
    Re: Notification trigger for new folder created on Sharepoint but not files added into the folder

    So sorry @sudharsan1985 but it seems that the error remains even if I use Documents.

    wanyigan_0-1704962917680.png

    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. 

    wanyigan_1-1704963041646.png

     

     

  • sudharsan1985 Profile Picture
    1,325 on at
    Re: Notification trigger for new folder created on Sharepoint but not files added into the folder

    Hi @wanyigan 

     

    Its the list name and not the folder name. You should use Documents.

  • wanyigan Profile Picture
    15 on at
    Re: Notification trigger for new folder created on Sharepoint but not files added into the folder

    Hi @sudharsan1985 

    I had entered the name of the folder for the flow.

    Here's the folder name for your reference.

    wanyigan_0-1704953586275.png

    wanyigan_1-1704953608246.png

     

  • sudharsan1985 Profile Picture
    1,325 on at
    Re: Notification trigger for new folder created on Sharepoint but not files added into the folder

    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

    sudharsan1985_0-1704952553097.png

     

     

  • wanyigan Profile Picture
    15 on at
    Re: Notification trigger for new folder created on Sharepoint but not files added into the folder

    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.

    wanyigan_0-1704952347681.png

     

  • sudharsan1985 Profile Picture
    1,325 on at
    Re: Notification trigger for new folder created on Sharepoint but not files added into the folder

    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.

     

    sudharsan1985_0-1704951238326.png

    Try the above and let me know if you have any clarifications.

     

  • wanyigan Profile Picture
    15 on at
    Re: Notification trigger for new folder created on Sharepoint but not files added into the folder

    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!

  • sudharsan1985 Profile Picture
    1,325 on at
    Re: Notification trigger for new folder created on Sharepoint but not files added into the folder

    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.

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,601 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,942 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow