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 / Modified Date & Todays...
Power Automate
Answered

Modified Date & Todays Date

(0) ShareShare
ReportReport
Posted on by 14

Hi, 

 

I'm trying to make a flow that:

send an email when modified = today minus 30 days. So the owner of the document receives an email. Hope anyone can help me.

 

 

Categories:
  • v-yuazh-msft Profile Picture
    Microsoft Employee on at

    Hi @dvaessens,

     

    I have made a test on my side, please refer to screenshot below to create the flow:

    Capture.PNG

     

    The expression in the Condition as below:

    @equals(formatDateTime(items('Apply_to_each')?['Modified'], 'yyyy-MM-dd'), formatDateTime(addDays(utcNow(), -30), 'yyyy-MM-dd'))

    Please let me know if your problem could be solved.

     

    Best regards,

    Alice

  • dvaessens Profile Picture
    14 on at

    Hi Alice, 

     

    When I test this flow, it sais error by condition. 

     

  • v-yuazh-msft Profile Picture
    Microsoft Employee on at

    Hi @dvaessens,

     

    Could you please share more details about the error message?

    Could you please share a screenshot of your flow and the error run history of the flow?

     

    I have made a test on my side and don't have the issue that you mentioned, please share more details so we would try to provide a proper workaround for you.

     

    Best regards,

    Alice

  • GabrielStJohn Profile Picture
    Microsoft Employee on at

    Hey, @dvaessens!

    Thank you for posting on the Flow Community Forum! It appears as though @v-yuazh-msft would like some more information in order to further assist you properly with your issue. Please share any additional information that was requested in order to decrease the amount of time that it will take for you to be assisted!

    Thank you for being an active member of the Flow Community!

    -Gabriel
    Flow Community Manager

  • dvaessens Profile Picture
    14 on at

    Hey Alice,

     

    The flow succeeded, but there's no email send. I changed the @equal.. to -5 (because there are no items modified more than 30 days ago). But at the end, there's no mail send. In my opinion there shood have been send an email.

     

    Foutmelding.png

     But when I test the flow it sais: Expression result -> False2.png

     

  • Verified answer
    v-yuazh-msft Profile Picture
    Microsoft Employee on at

    Hi @dvaessens,

     

    Maybe you could take a try with expression below:

    @lessOrEquals(formatDateTime(items('Apply_to_each')?['Modified'], 'yyyy-MM-dd'), formatDateTime(addDays(utcNow(), -5), 'yyyy-MM-dd'))

    Or expression below:

    @greaterOrEquals(formatDateTime(items('Apply_to_each')?['Modified'], 'yyyy-MM-dd'), formatDateTime(addDays(utcNow(), -5), 'yyyy-MM-dd'))

     

    Best regards,

    Alice

  • dvaessens Profile Picture
    14 on at

    Hi Alice,

     

    LessorEquals was the solution I needed. Thanks for your help! 

     

    Kind regards,

     

    Danny Vaessens

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
11manish Profile Picture

11manish 315 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 267

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard