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 / Return file which are ...
Power Automate
Unanswered

Return file which are due to expire in 30 days

(0) ShareShare
ReportReport
Posted on by

Hi All,

 

I have a flow, which i was helped to build, that returns files when the retraining date is coming up. The problem i have is that it returns all the files which have a retrain date and i only want it to show me the files that will expire in 30 days of the retrain date.

 

ArturDj_0-1624434232438.png

 

I assume the filter array would need to be change to do this but i am not quite sure to what. This is what it currently looks like:

@And(not(equals(item()?['RetrainingDate'], null)),lessOrEquals(formatDateTime(item()?['RetrainingDate'],'dd-MM-yyyy'), formatDateTime(utcNow(),'dd-MM-yyyy'))). 

 

Thank you

 

Categories:
I have the same question (0)
  • Verified answer
    v-LilyW-msft Profile Picture
    on at

    Hi @Anonymous 

    According to your description, you want to filter out the files that will expire in 30 days, but your formula does not reflect 30 days, so please modify the formula to and try again:

    @And(not(equals(item()?['RetrainingDate'],null)),lessOrEquals(formatDateTime(item()?['RetrainingDate'], 'yyyy-MM-dd'), addDays(utcNow(), 30, 'yyyy-MM-dd')))

    Best Regards

    If my solution helps, then please consider Accept it as the solution to help the other members find it more quickly.

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 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard