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 / When new files created...
Power Automate
Answered

When new files created in sub-folders of Folder

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a parent folder 'a'  and I know that this will contain sub-folders with varying names e.g 'b' 'c'. I want to recognise when a file is added to any of these subfolders.

 

How can I get MSFlow to recognise 'When an item is created in a subfolder of this folder' as I won't know the specific subfolders name from the start of the flow,

 

I tried using the 'When an item is created in this folder' but it only recognises direct children, and not children of subfolders. It is only a 2 level hierachy, as I'll have parent folder -> child folder -> child document

 

Thanks!

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

     

    Do you want to monitor if a new file is created in sub-folders of a specific folder using Microsoft Flow?

     

    I afraid that there is no way to achieve your needs in Microsoft Flow currently, It is a known issue that file triggers won't fire for files being added inside of nested folders inside the folder you select.

     

    If you would like this feature to be added in Microsoft Flow, please submit an idea to Flow Ideas Forum:

    https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

     

    More details about known issues and resolutions in Microsoft Flow, please check the following article:

    Known issues and resolutions

     

     

    Best regards,

    Kris

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I don't know if this is a new feature since this post, but it's still listed as a known limitation and I've gotten it to work using the trigger - "When a file is created (properties only)".  In the Folder field, I select main folder/subfolder.  Then, for any folder I create under subfolder, I can add a file to it and it will trigger the flow.  Then, later in the flow, I use the Get file content action so I can get the attachment itself.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    This did NOT work for me?! Smiley Sad

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    This is a simple Flow I tested and it triggers to send an email when a file is uploaded to Folder1 or to any of the subfolders under it.  I'm using SharePoint Online.

     

    Capture.JPG

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi

     

    I think we talking cross purposes here. I thought this was to do with the "File System" flow trigger. 

    Here is my flow that is not working on subfolder changes. 

     

    Capture.PNG

    I have since looked into the issue and as 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    has anyone had any luck with this flow with dropbox as the trigger

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I never got it working i'm afraid.

  • rupach Profile Picture
    30 on at

    has anyone had any luck with this flow with sharepoint as the trigger

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Yes @rupach - see my earlier comment.  I use it with SharePoint Online - When a file is created (properties only).

  • rupach Profile Picture
    30 on at

    thank you for your reply. 

    could you please help/guide me on my below requirement...

    Requirement: 
    Share Point has multiple folder structure with nested folder in it and each folder has a group of users and one business owner for the complete folder structure. (Shown in the example below)

    I need to implement a flow which triggers an email notification to its corresponding business owners requesting to Approve/Reject when an item/file is created in a folder/sub folder.

    Once Approved/Rejected I would need to update the file status on the SharePoint based on the response to the email.
    How do i achieve and specify folder specific business owner emails in the flow.

    Implemented: 
    I have implemented a flow which sends an email when an item/file is created in any of the folder and status is also updated on the SharePoint as per the email response.

     

    Road block: An email is triggered to parent  business owners from the folder structure when there is a file created only in a child  folder where it is supposed to send an email to that particular business owner when/where a file/Item is created.


    Ex: My issues in the below scenario
    1) The email to business owner A only when the file is created in Folder A and Sub folder B, where as it is supposed to send the email  only to Sub Folder B.



    Folder A (Business Owner A)
         File 1
         Sub folder B (Business Owner B)
            Sub folder B File 1
         Sub folder C (Business Owner C)
            Sub folder C File 1

     

     

     

    Folder A

    Sub Folder A1

    Sub Folder A2

    Email Trigger

     

    When an new file is added

    N

    N

    Email only to Folder A business Owner

     

     

    When an file is created in Sub folder A1

    N

    Email only to Sub Folder A1 Business Owner

     

     

     

    I have tried to achieve this by creating an Custom List on Share point where Custom List has all folders and sub folders with their corresponding business owner email id’s. I had created an file in sub folder A1 and I tried to filter the sub folderA1 from Custom List ,I am not finding any function to retrieve sub folder A1 from folder path and use that as a filter condition to filter custom list. 

     

    Could you please guide me what I am missing and also help me with the solution ?

     

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!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 77 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 68

#3
Expiscornovus Profile Picture

Expiscornovus 56 Most Valuable Professional

Last 30 days Overall leaderboard