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

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:
I have the same question (0)
  • v-yuazh-msft Profile Picture
    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
    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
    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
    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

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard