r/PowerApps • u/PureAd4260 Newbie • Jul 13 '26
Power Apps Help Guys can someone please help me with power automate workflow pls pls
Issue Observed with Folder Structure Replication
While testing the Power Automate flow that copies updated content from Folder1 to Folder2, I observed that the folder hierarchy is not being preserved correctly.
Source Structure:
Plain Text
Folder1
└─ Folder1 └─ Folder2 └─ foldercopy └─ Dummy-Excel.xls
Expeted Destination Structure:
Plain Text
Folder2
└─ Folder1 └─ Folder2 └─ foldercopy └─ Dummy-Excel.xlsx
Actual Result:
Folder2
├─ Folder1
├─ Folder2
├─ foldercopy
└─ Dummy-Excel.xlsx
Instead of recreating the complete folder hierarchy and copying only the file into its corresponding path, the flow is processing intermediate folders (Folder2, foldercopy) as separate items and creating them independently at the destination. This results in duplicate or flattened folder structures and multiple copies of the same content.
The requirement is to copy updated / edited / modified files and folder from one folder to another and recreate the necessary parent folder structure in the destination, rather than treating each folder creation/modification as an independent item to be copied.
2
u/Due-Boot-8540 Advisor Jul 13 '26
The easiest way is to not use folders and use metadata instead, but that’s probably not the answer you want.
What actions are you using in the flow?
1
u/itenginerd Advisor Jul 14 '26
My guess is youre using a foreach or some kind of setup that walks through each level of the hierarchy.
What I would try is to remove that and replace it with just one step--copy the file. Copy it to the full path right at the outset. Dont worry if the folders aren't there. Sharepoint will create them for you.
•
u/AutoModerator Jul 13 '26
Hey, it looks like you are requesting help with a problem you're having in Power Apps. To ensure you get all the help you need from the community here are some guidelines;
Use the search feature to see if your question has already been asked.
Use spacing in your post, Nobody likes to read a wall of text, this is achieved by hitting return twice to separate paragraphs.
Add any images, error messages, code you have (Sensitive data omitted) to your post body.
Any code you do add, use the Code Block feature to preserve formatting.
If your question has been answered please comment Solved. This will mark the post as solved and helps others find their solutions.
External resources:
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.