I have a flow that is activated from a folder being updated. The flow uses "Get files (properties only)" to determine if the folder has documents to update. A lot of attributes are propagated from the folder to dependent documents. If the folder has dependent documents, the "Get files (properties only)" returns an array of file attributes. Recently, I've noticed two conditions where the API call returns an empty array when files are present.
The first should be reproducible. This was discovered after noticing that the attributes were not propagated to the documents within the folder. I reasoned that maybe the folder was corrupt, so I created another folder and did a SharePoint "Move to" to remove all the documents. Then I noticed that attributes were not being propagated in the new folder. The flow returned an empty array when there were documents present.
I also downloaded all the documents before I did the "Move to."
I decided to upload just one of the documents to the emptied folder. Then, the attributes got propagated. Next, I uploaded all the rest using the Control key to select them. The same thing happened: all the attributes from the folder were propagated.
I have no idea how the user initially got this condition to occur since they wouldn't have permission to do a "Move To."
I got this working, but I'm stumped at the behavior.
Michael E. Gernaey
566
Super User 2025 Season 1
David_MA
516
Super User 2025 Season 1
stampcoin
492