Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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.

 

 

  • dvaessens Profile Picture
    14 on at
    Re: Modified Date & Todays Date

    Hi Alice,

     

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

     

    Kind regards,

     

    Danny Vaessens

  • Verified answer
    v-yuazh-msft Profile Picture
    on at
    Re: Modified Date & Todays Date

    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
    Re: Modified Date & Todays Date

    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

     

  • GabrielStJohn Profile Picture
    on at
    Re: Modified Date & Todays Date

    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

  • v-yuazh-msft Profile Picture
    on at
    Re: Modified Date & Todays Date

    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

  • dvaessens Profile Picture
    14 on at
    Re: Modified Date & Todays Date

    Hi Alice, 

     

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

     

  • v-yuazh-msft Profile Picture
    on at
    Re: Modified Date & Todays Date

    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

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow