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 / How to move a single f...
Power Automate
Answered

How to move a single folder at flow

(0) ShareShare
ReportReport
Posted on by 5

Hi,

Will the challenge I am facing is:

. I have one folder (folder 0 will name it) with multiple folders in it, and new folders will keeping added  to folder 0 all the time.

. I need power automate desktop to move the oldest folder from folder 0 to another folder, do the flow and finish it, then start all over with the 2nd oldest folder.

 

Can this be done?

Categories:
  • Verified answer
    Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @Ishaq 

    It is possible

     

    I think u had to move oldest folder one by one at every time.

     

    So for that i had constructed a workflow

     

    Nived_Nambiar_0-1627125298525.png

     

    Here first i read all folders jn a folder using Get Subfolder from folders actions and store the list of folder in Folders variable

    Here i had set the properties like this 

    Nived_Nambiar_1-1627125422318.png

     

     

    Main thing u had to note is u had to select the sort by option as shown in figure

     

    2. Next set a variable i with value as  with set variable action.

     

    3. use the loop with condition action with the following parameters

    Nived_Nambiar_2-1627125516419.png

     

     

    You can change the condition for this as need, here i had put the condition to move the oldest folder from folder one by one.

     

     

    now inside the loop, do the following things:

     

    Nived_Nambiar_3-1627125590114.png

     

     

    a. Use move folder to move the folder to destination folder, properties for this need to set like below

    Nived_Nambiar_4-1627125642768.png

     

    %Folders[0]% represent the oldest folder from the list %Folders%

     

    Now after this action, use Increase variable by action to increment the %i% by one

    Nived_Nambiar_5-1627125724341.png

     

     

    Now after that use the remove item from list action with following properties

    Nived_Nambiar_6-1627125760065.png

     

     

    This is the way u can try around,

     

    Hope you got the logic,

    Mark it as solution if it helps!!!!!

     

    Regards,

    Nived N

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
11manish Profile Picture

11manish 298 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 289

#3
Henil Profile Picture

Henil 125

Last 30 days Overall leaderboard