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 / Create Flow for Moving...
Power Automate
Unanswered

Create Flow for Moving Attachments Based on Folder Structure in SharePoint

(1) ShareShare
ReportReport
Posted on by 2

Hello everyone!

I'm trying to create a flow in Power Automate that integrates with a PowerApps form and moves attachments to specific folders in a SharePoint document library based on information extracted from a SharePoint list. Below, I outline what I'm trying to achieve:

Flow Objective:

  • When a new form is submitted in PowerApps, I want the flow to:
    1. Retrieve the attachment from the item in the SharePoint list.
    2. Check the information for Function, Industry, and Client stored in that list.
    3. Check in the document library if there is a folder with the name of the Function:
      • If yes, go into that folder and check if there is a subfolder with the name of the Industry:
        • If yes, go into that subfolder and check if there is a subfolder with the name of the Client:
          • If yes, move the attachment to that folder.
          • If no, create the Client folder and move the attachment there.
        • If no, create the Industry folder and the Client subfolder, then move the attachment to the newly created Client folder.
      • If no, create the Function folder, the Industry subfolder, and the Client subfolder, moving the attachment to the newly created Client folder.
Data Sources:
  • SharePoint List: Contains information about Function, Industry, and Client.
  • SharePoint Library: Where the folders should be created and where the attachment will be moved.
Categories:
I have the same question (0)
  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at
    Is you flow not working? Are you struggling with an error?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 293 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 186 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 144 Super User 2026 Season 2

Last 30 days Overall leaderboard