web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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,394 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard