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 / Flow to move a library...
Power Automate
Answered

Flow to move a library folder up 1 level based on a list column status

(0) ShareShare
ReportReport
Posted on by 43

Hello

 

I have inherited looking after our team's SharePoint page and have very little knowledge or experience with SharePoint and workflows etc. The previous person setup many good workflows with SharePoint Designer. There is one workflow for new projects where when a new project is added to a list there is a project number generated and a corresponding folder created with that number in a library. I want to create a flow so that when the project list item has a 'status' column changed to complete the corresponding library folder moves up a level to a folder called archive. Please advise of the best way to do this? Thank you.

 

Regards

Nick

Categories:
I have the same question (0)
  • efialttes Profile Picture
    14,756 on at
    Hi!
    Can you share a screenshot of your SP list column definition? So is 'status' column of type Choice, how is reference to the corresponding library document stored, etc?
    Thanx!
  • Nick_k Profile Picture
    43 on at

    column properties.JPG

    Hi - the status column is setup as a choice. I think the list entry is referenced in the library folder by the title column and the folder number column

  • Verified answer
    efialttes Profile Picture
    14,756 on at

    Hi!

    The first step is then to set up a flow when an item is updated, and evaluate Status column value. My suggestion is to have a look to this recent thread

    https://powerusers.microsoft.com/t5/Building-Flows/Sharepoint-flow-creation/m-p/491970#M60876

     

    So you need a trigger, you need a condition to evaluate, and...

     

    In oder to move the file, I would recommend you to explore Move file action block from Sharepoint connector. If it match your requirements, I would add it inside your condition true branch.

     

    Please note if your flow need to update the item, you can enter a neverending execution loop.

    Please also note if the Status value is kept as is, and the item is updated again in the future, your flow will be executed again and condition will also be true.

    Hope this helps

  • v-litu-msft Profile Picture
    Microsoft Employee on at

    Hi @Nick_k,

     

    @efialttes's advice is very accurate. You can build your Flow by following the links he provides. If you have problem when you building Flow, please feel free and I could give you some advice.

    And there is an item be modified and its value of Status is Complete, move the file, how do you store file information into the item? Filename or folder path?

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

  • Nick_k Profile Picture
    43 on at

    Thank you both for your replies. How do I ensure the flow is going to move the correct folder? I'm unsure what action should go in the yes condition? Underneath the condition I have a move folder action, is this correct? Please see screen shots below.

     

    archive flow.JPGarchive flow 2.JPG

     

    Regards

    Nick

  • efialttes Profile Picture
    14,756 on at
    Hi!
    I think you gave the answer in your first post
    "when a new project is added to a list there is a project number generated and a corresponding folder created with that number in a library"

    Try to build the target folder name by using that number... since the number is stored in a column of your SP list, right?
    Hope this helps
  • Nick_k Profile Picture
    43 on at

    Yes the folder is created with the number that is generated. but how do you specify that specific folder for moving? Also do i need to put any actions in the 'if yes' and 'if no section'?

     

    Regards

    Nick

  • efialttes Profile Picture
    14,756 on at
    Hi
    I think it will be easier if you provide us an example: this folder is called xxx and the 'number' is stored in a SP list column called yyy. The column is defined of type ( number, single line of text,...)
    Thanx!
  • Nick_k Profile Picture
    43 on at

    The folder name is a combination of 2 column values, the Folder No and Title Column. EG the folder is called XXX-OS-455-Network Install. The XXX-OS-455 comes from the Folder No column and the Network Install comes from the Title column.

     

    Sorry for the back and forth, I'm really quite a novice with Flow... 😞

  • Nick_k Profile Picture
    43 on at

    Hi  efialttes.

    I have my flow working and i'm very happy. Thank you for your advice!

    Regards

    Nick

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 245

#2
David_MA Profile Picture

David_MA 216 Super User 2026 Season 1

#3
Valantis Profile Picture

Valantis 212

Last 30 days Overall leaderboard