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 / Move files to another ...
Power Automate
Answered

Move files to another folder by date created

(0) ShareShare
ReportReport
Posted on by 22

I have a flow that creates a number of excel files each day in a folder that also contains python scripts.

At the end of the flow I want to move the excel files created that day into another folder

The Move action variable lists and sorts the files but i can't figure out how to move only those created today

This is  a sample list sorted in descending order

GJH_0-1670524033317.png

 

  

I have the same question (0)
  • Verified answer
    momlo Profile Picture
    1,527 Super User 2024 Season 1 on at

    Hi @GJH 

     

    Option 1:

    Once you have a list of files, use "For each" loop and check "CreationTime" for each file

    You can access it the following way: %File.CreationTime%

     

    Option 2:

    1. At the start of the flow - create list of the files in the fodler

    2. At the end of the flow - create second list of the files

    3. Find the delta using Subtract Lists

    4. Move files

     

    Variables actions reference - Power Automate | Microsoft Learn

     

    I would go with Option 2- cleaner, less code

     

  • GJH Profile Picture
    22 on at

    Momlo

    Thank you. Yes your List option works well and is the better option - I dislike loops!

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