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
Answered

File Properties

(0) ShareShare
ReportReport
Posted on by 138

I need to Move files from one folder to another using the Property '.CreationTime'

I have tried the following PAD action

The date variables have been checked and are correct

The isues is the error 'Files3' does not have a property '.CreationTime' appears

garthh_0-1678322744309.png

When I look at Files3 '.CreationTime' is a Property - what do I need to do to filter/select/move files by '.CreationTime'?

garthh_1-1678323047662.png

 

  • Pavel_NaNoi Profile Picture
    1,074 on at

    You're doing a for loop on files3, yet you're also telling it to look for .CreationTime in files3, switch it to Currentitem.CreationTime, as with the way you're doing right now you're asking for the "CreationTime" property on the entire list of files rather than one file at a time.

  • Kaif_Siddique Profile Picture
    2,108 Super User 2024 Season 1 on at

    Do you want to compare Current File with Yesterday? Try to update Files3 with CurrentItem

    Kaif_Siddique_1-1678389848484.png

  • garthh Profile Picture
    138 on at

    Pavel

    Thank you

    I have tried what you suggested and checked that the dates %Yesterday% and %ResultedDate% were in the same MM/dd/yyy format (our reginal format is dd/MM/yyy). I also used >= to overcome the date time difference but are unsre if that is the way to handle the time difference, or if that is necessary? 

    I get this error now but presume this is not date releated.

    Any other thoughts please! 

    garthh_0-1678397844435.png

     

  • garthh Profile Picture
    138 on at

    Kaif

     

    Thank you

    You may have seen my reply to Pavel;

    avel

    Thank you

    I have tried what you suggested and checked that the dates %Yesterday% and %ResultedDate% were in the same MM/dd/yyy format (our reginal format is dd/MM/yyy). I also used >= to overcome the date time difference but are unsre if that is the way to handle the time difference, or if that is necessary? 

    I get this error now but presume this is not date releated.

    Any other thoughts please! 

    garthh_0-1678397844435.png

     

     

  • Verified answer
    Pavel_NaNoi Profile Picture
    1,074 on at

    Move to files should also be moving Currentitem, not files3, should've noticed that, my bad.

  • Kaif_Siddique Profile Picture
    2,108 Super User 2024 Season 1 on at

    Could you try @Pavel_NaNoi suggestion ? just update 'file3' with 'CurrentItem'.

    Kaif_Siddique_0-1678473990197.png

     

  • garthh Profile Picture
    138 on at

    Pavel & Kaif

    Thank you - Yes, CurrentItem works

    I have another probelm and hope you can help

    I need to Move the files into a folder but the folder name changes daily

    When the folder is created it has the name of the previous days date - in other works if created on the 11 March 2023, part of the folders name would be 10 Mar 2023. This is achieved in the Flow

    When running the Flow it will make Date this new folder yesterdy

    I need to move the files into the folder made on the previous day, day before yesterday

    I have used the Action Get subfolders in Folders but the variable produced is a list.

    I can't fathom how to move the folder needed from the list into a variable that is a folder so it can be used in the Move files to folder action

    Are you able to help? 

  • Pavel_NaNoi Profile Picture
    1,074 on at

    Try:

    -Get current date and time

    -Subtract dates (to get the correct date time you want)

    -Use Parse Text action, and parse the list of subfolders via a regular expression option ticked and look for the date time you've just made.

    -The match variable produced will be your folder name.

  • garthh Profile Picture
    138 on at

    Pavel

     

    Thank you

    I believe I understand what you have outlined.

     

    I used Get sub Folders in Folder as that allows a folder filter but creates a list

    However, I can’t move files into a Folder that is in a list as the Move files action says ‘Destination Folder must be Folder’

     

    Can I find the path of the folder in the list as it appears a path is required for the Move files action?

     

    I’ll try the Parse text action also

     

    Garth

  • garthh Profile Picture
    138 on at

    Pavel

     

    Will the variable 'Match' store a folder path?

    I have checked the dates as the Parse action isn't providing a Match variable

    I don't know if thats an issue with Parse or if Parse can't store a Folder path?

    Here is the Flow

    garthh_0-1678744289749.png

     

     

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

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 229 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 223 Super User 2026 Season 2

#3
Valantis Profile Picture

Valantis 136 Super User 2026 Season 2

Last 30 days Overall leaderboard