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 Automate
Unanswered

Create a backup

(0) ShareShare
ReportReport
Posted on by 3

Hello

 

I hope you can help me, I have created a flow to periodically create a security file, now I would like create copies with the same name (adding a number at the end of the name as always) and another function for delete files that are more than 14 days old, for which I understand that the last modification date works as it are new files created.

 

The problem is that the file delete function is not executed as it should. It could be solved by removing the conditional and directly adding the delete function with LastModified, but I can't get it to work.

 

I will keep waiting for you to tell me how I could do it.

 

Thank you so much.

 

kevinalmodovar_0-1698609139089.png

 

 

 

Categories:
I have the same question (0)
  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    @kevinalmodovar ,

    When you compare dates, you need to first change them in UTC format. Try this

    SudeepGhatakNZ_0-1698627998389.png

     

  • Verified answer
    v-yetonggu-msft Profile Picture
    on at

    Hi @kevinalmodovar ,

    Do you want to delete files in the destination folder whose creation date is older than 14 days?

    If so, I did a test for your reference.

    In my scenario:

    vyetonggumsft_0-1698635771315.png

    vyetonggumsft_1-1698635771319.png

    vyetonggumsft_2-1698635771321.png

    Best Regards,

    Sunshine Gu

  • kevinalmodovar Profile Picture
    3 on at

    It works, thanks so much!

  • EliMigdal Profile Picture
    42 on at
    I created a tool to do backups of Power Automate Flows:

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

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard