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 / 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

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard