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 / Condition: Date within...
Power Automate
Answered

Condition: Date within the next 30

(0) ShareShare
ReportReport
Posted on by 4
Hello, 

I am trying to write a simple 'expiration date' check flow 

The idea is to check a Sharepoint List which lists the expiration dates of items

I am able to get the data but the condition doesnt appear to be respected properly -- ie: I extended out the expiration date and it still is being actioned on 
 
formatDateTime(item()?['Expiration_x0020_Date'], '') is less or equal to addDays(utcNow(), 30)

The input of that condition is 

"Date_x0020_of_x0020_Certificatio": "2024-12-06", "Expiration_x0020_Date": "2025-01-30",

What am I doing wrong here? 
   "Date_x0020_of_x0020_Certificatio": "2024-12-06",
        "Epiration_x0020_Date": "2025-01-30"What am i doing wrong? 
Categories:
  • Verified answer
    Ellis Karim Profile Picture
    12,336 Super User 2026 Season 2 on at
    Hi,
     
    Can you share you flow with the condition action? Looking at the expressions you provided I think the expression for 'Expiration_x0020_Date' and addDays() should be:
     
    formatDateTime(item()?['Expiration_x0020_Date'], 'yyyy-MM-dd')
    addDays(utcNow(), 30, 'yyyy-MM-dd')
     
    Ellis
  • BR-06122126-0 Profile Picture
    4 on at
    Seems to be the solution. Looks like I was on the right track, but didnt have the date formats in the condition. 

    The action on the condition is literally, if True, send Email. If False, do Nothing. 

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 414

#2
11manish Profile Picture

11manish 331 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard