Skip to main content

Notifications

Power Automate - Building Flows
Unanswered

Delete Oldest Files if count is greater than 240

(0) ShareShare
ReportReport
Posted on by 252

Hi I have the below flow, which should delete the oldest files if the folder count is greater than 240.  

Skybluekid_1-1689600199635.png

Skybluekid_2-1689600232287.png

 

It works ok, until the delete part, where it says that it cant find the ID to delete.

 

Any help would be appreciated.

 

 

  • annetoal Profile Picture
    annetoal 1,933 on at
    Re: Delete Oldest Files if count is greater than 240

    Try it and post your results. Not being able to see what you've actually written is something of a disadvantage.

    I would just try selecting Identifier from the dynamic inputs.

  • Skybluekid Profile Picture
    Skybluekid 252 on at
    Re: Delete Oldest Files if count is greater than 240

    Hi @annetoal

     

    I am using ID.  

    Would this be the answer: first(body('Get_files_(properties_only)')?['value'])?['{Identifier}'] ?
  • annetoal Profile Picture
    annetoal 1,933 on at
    Re: Delete Oldest Files if count is greater than 240

    Are you using ID or Identifier?

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,422

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,711

Leaderboard