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 Automate
Unanswered

Move Folder

(0) ShareShare
ReportReport
Posted on by 4

Move latest modified folder in SharePoint directory to another folder in same directory 

  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @JeffMuel 

     

    Are you trying to achive this via power automate desktop or cloud flow ?

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

  • JeffMuel Profile Picture
    4 on at

    Power Automated Desktop

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Do you have a Premium license, or are you using the free version of Power Automate Desktop?

    If you have a Premium license, you can use the SharePoint group of actions. There's an action called Move folder there that is exactly what you need.

     

    If you do not have a Premium license, you will in fact either need to do this via Graph API by using the Invoke web service action, or you will need a separate app. You can get the OneDrive app on your machine and sync your SharePoint directory to the machine locally. When you do that, you can access all of the folders in the directory via the local Windows explorer as if they were local folders. When that is the case, you can use the Move folder action under the Folder actions group to move the folder.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • JeffMuel Profile Picture
    4 on at

    Yes, I do have the premium version of Power Automate Desktop, I was able to find the move but unable to find where to filter it down to where the last created folder will be the only folder to move

  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @JeffMuel 

     

    Try this logic

     

    Nived_Nambiar_0-1698084990683.png

     

    Here the flow get list of files/folders in a directory using List folder action

     

    Now sort the output from List folder action using sort list action like below so that it gets sorted by ModifiedDate in descending order.

    Nived_Nambiar_1-1698085083301.png

     

     

    Now %ListFolderResponse% would be a sorted list based on LastModified property in desceding order (i.e latest based files/folder comes first).

    So we can loop through the %ListFolderResponse% and move the first folder which comes in iteration first and that would be moved since that would be latest folder modified 

     

    see how i did here

    clearly

    Nived_Nambiar_2-1698085239790.png

     

    to detect whether current iteration is folder or not use isFolder property of the current iteration to check that, if it is True, it means it is folder, then use move folder to move the current folder to designed destination like below

    Nived_Nambiar_3-1698085353651.png

     

    After this loop is exited since the first folder it interacts with would be last modfied folder 

    Nived_Nambiar_4-1698085407073.png

     

     

    Hope this helps !

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

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

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 426

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard