web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : g97ZbLBF5J/ZjgKyN21xYR
Power Automate - Building Flows
Answered

Create a backup

Like (0) ShareShare
ReportReport
Posted on 29 Oct 2023 19:54:06 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

 

 

 

I have the same question (0)
  • kevinalmodovar Profile Picture
    3 on 01 Nov 2023 at 18:59:37
    Re: Create a backup

    It works, thanks so much!

  • Verified answer
    v-yetonggu-msft Profile Picture
    on 30 Oct 2023 at 03:24:15
    Re: Create a backup

    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

  • SudeepGhatakNZ Profile Picture
    14,381 Most Valuable Professional on 30 Oct 2023 at 01:06:46
    Re: Create a backup

    @kevinalmodovar ,

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

    SudeepGhatakNZ_0-1698627998389.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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Tom Macfarlan – Community Spotlight

We are honored to recognize Tom Macfarlan as our Community Spotlight for October…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 707 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 499 Moderator

#3
chiaraalina Profile Picture

chiaraalina 312

Last 30 days Overall leaderboard
Loading complete