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 / Minus days off todays ...
Power Automate
Unanswered

Minus days off todays date within a condition

(0) ShareShare
ReportReport
Posted on by
Hi, in desperate need of help!
I’m trying to figure out what’s not working but having no luck.
 
my current flow is Recurrence > Get worksheets > List rows present in a table > Filter Array > For Each > Condition > …..
 
so my filter array is filtering any rows of data from a spreadsheet that have blanks (no writing) in a specified column.
my condition is that I want to send an email to those rows of data that have blanks in specified column AND the date listed is 25 days or more ago.
 
So what I’m trying to figure out is how to make the condition work
right now I have for Condition Expression:
AND — 1st Value = Filter Array body (Dynamic) is less than 2nd Value = addDays(Today(-25))
- The error I get says “‘Today’ is not defined or not valid”
 
How do I fix this? Because it used to work and it’s not anymore, how do I make is defined or Valid??
 
thanks heaps in advance!!
 
Categories:
I have the same question (0)
  • Suggested answer
    LessCodePaths Profile Picture
    100 on at
    Hi,
     
    Today() function does not exist in Power Automate.
    In Power Automate, there is only utcNow() function, which return current time.
     
    Your formula should become
    addDays(formatDateTime(utcNow(),'yyyy-MM-dd'),-25)

    This expression is doing two main things:

    1. formatDateTime(utcNow(), 'yyyy-MM-dd'):

      • utcNow() provides the current date and time in UTC.
      • formatDateTime(..., 'yyyy-MM-dd') formats this to return only the date (in YYYY-MM-DD format) without the time.
      • Result: This part outputs today’s date as a string (e.g., 2024-11-06).
    2. addDays(..., -25):

      ​​​​​​​
      • This takes the formatted date and subtracts 25 days from it.
      • Result: A date that’s 25 days before today, in date format.
    Hope it helps
    L.
  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at
    @LessCodePaths,
     
    The addDays function also has a format parameter
     
    addDays('<timestamp>', <days>, '<format>'?)
     
    So, you could also use the below and simplify the expression a bit.
    addDays(utcNow(), -25, 'yyyy-MM-dd')
     

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

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard