Skip to main content

Notifications

Power Automate - Using Connectors
Unanswered

Trigger flow from files added inside a folder

(0) ShareShare
ReportReport
Posted on by 21

I have a problem where flows are not triggering from files that are added inside a folder. If you drag and drop the folder that has the files inside to SharePoint the flow triggers from all of the files but if I copy the folder from one location in SharePoint into another the flow only triggers once of the folder.

 

I have been wondering if I could list all the files inside the added folder and process them that way but then I would have to know how the folder was added so I wouldn't process the same files twice. 

  • Sasu Profile Picture
    Sasu 21 on at
    Re: Trigger flow from files added inside a folder

    We were using SharePoint list as a work queue so a possible solution for this is that you can make the column that contains the id of the file unique, so it can't add same file to the work queue multiple times. This is a solution to the problem that  @FLMike suggestion has where the files would be processed multiple times if someone dragged and dropped a folder.

  • Sasu Profile Picture
    Sasu 21 on at
    Re: Trigger flow from files added inside a folder

    This is something I thought of doing but the problem is if someone decides to drag and drop a folder with files in it the flow would process the files twice.

  • FLMike Profile Picture
    FLMike 31,580 on at
    Re: Trigger flow from files added inside a folder

    Question,

     

    Do people do a lot of drag and drop of folders in? I am a little headscratch that its not triggering properly and I feel for you.

     

    Just wondered if its a situation you plan to have. If so, then my suggestion is this.

    1. Let it trigger

    2. Validate its a subfolder

    3. List all the files in the subfolder

    4. process the files.


    Cheers
    If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • Sasu Profile Picture
    Sasu 21 on at
    Re: Trigger flow from files added inside a folder

    But there are subfolders where I put the files and folders and they trigger fine but if I put folder with files in it, it only triggers of the folder but not any of the files that are inside. But maybe I'll still test this. We do need the condition but maybe we can implement it in another way if it's causing the problem.

  • FLMike Profile Picture
    FLMike 31,580 on at
    Re: Trigger flow from files added inside a folder

    Hello,

     

    Its very possible that is the issue. Take out the condition and test again. Depending on how its created it will in fact require that path and will ONLY trigger on files in that path, not in that path + any subfolders + files.
    Cheers
    If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • Sasu Profile Picture
    Sasu 21 on at
    Re: Trigger flow from files added inside a folder

    We have a trigger condition where the path needs to contain certain string and also we exclude one user from triggering the flow. I can't find any settings that would disable subfolders from the trigger.

  • FLMike Profile Picture
    FLMike 31,580 on at
    Re: Trigger flow from files added inside a folder

     Hello,

     

    By chance did anyone setup a specific setting on the Trigger, that only looks at the Main folder, versus subfolders? this would explain why it only triggers once.

    Cheers
    If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,666

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,996

Leaderboard

Featured topics