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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / need help with documen...
Power Automate
Unanswered

need help with document expiry automated flow

(0) ShareShare
ReportReport
Posted on by 10

@Anonymous( empty(item()?['Policy Expiry date']), less(item()?['Policy Expiry date'], addDays(utcNow(), -30), 'mm-dd-yyyy')))

 

am struggling to pull them from expiry date 

 

Categories:
  • Expiscornovus Profile Picture
    34,005 Most Valuable Professional on at

    Hi @Tumelo1,

     

    Do you get an error? Can you share more details like a screenshot of the config and/or the error message.

     

    Is this Policy Expire date a column in a SharePoint document library?

     

    If so, it is very likely that the internal name of the field is different. Typically the internal name would not have space characters. 

     

    Second thing I notice is that you used mm for your format. That is minutes. Use capital MM, that should be months.

     

    Third thing I would change is the place of the format 'MM-dd-yyyy'. It is outside of the addDays function. I would place it within that function as the third parameter.

     

    In that case try this instead:

     

    @or(empty(item()?['PolicyExpirydate']), less(item()?['PolicyExpirydate'], addDays(utcNow(),-30, 'MM-dd-yyyy')))

     

     

     

     

     

  • Tumelo1 Profile Picture
    10 on at

    yes the expiry date column is there...i will try that format you gave me...i only get name of file nothing eles no expiry date to pulll

     

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 377

#2
11manish Profile Picture

11manish 302 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 130

Last 30 days Overall leaderboard