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.
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.
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.
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
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.
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
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.
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