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 / is there a way to chan...
Power Automate
Unanswered

is there a way to change Modified date and created date after creating a file?

(0) ShareShare
ReportReport
Posted on by 397

Hello Everyone,

 

I am new to PowerPlatform. My organization want's to move files from one library to another library if the content is older than 3 yrs. 

They also want to retain folder structure, metadata such as Modified by, created by, Modified date and Created date. 

I was able to do up to below steps, but I am not able to find any solution on how to append metadata after creating a files at destination. 

 

Steps I have followed so far: 

1. Recurrence

2. Get file properties only

3. Apply to each

    3.1 Condition if 3 yrs old

   3.2  Get file content

   3.3 Create file (at destination)

   3.4. Delete file (at Source)

 

 

The reason why I have used Create file is that if there is no folder structure then it can also create Folder structure at destination.

 

Can someone please help me out on how to append remaining columns (Modified,created,Modified By) based up on source files/folder details? 

Categories:
I have the same question (0)
  • jinivthakkar Profile Picture
    4,187 on at

    @rajkumar88 You can modify modified and modified column but I know for sure that created by and created cannot be modified.

     

    Check this out : http://johnliu.net/blog/2019/2/flowninja-hack-78-modifying-modified-by-and-modified-time-with-microsoft-flow

     

    Also as a workaround in the source library, you could add four custom columns created,modified, created by, modified by and have a flow in place which will update the four columns and when you move it to destination library you could use values from these four columns.

     

    Hope this helps.

     

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

  • rajkumar88 Profile Picture
    397 on at

    @jinivthakkar Thanks for sharing this info. I was able to make "Modified date" work. however Modified by is not working for me. I am composing using "Modified by Claims". Do you suggest I use "Modified by Displayname" so that it can able to find and update properly? 

     

  • jinivthakkar Profile Picture
    4,187 on at

    @rajkumar88 why don't you try the workaround I have given, there are very high chances that this will keep on giving issues at a later point of time also

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 605

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard