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 / I have a condition box...
Power Automate
Unanswered

I have a condition box. how do i add a condition to run only if start date was in the past 30 days?

(0) ShareShare
ReportReport
Posted on by 359

hi. i have a simple condition i'm having a hard time to logic and write. i want the condition to be for it to run only if

 

the start date occurred in the last 30 days (it can be today or anytime in the past month).

 

is my last line in the photo correct? what am i supposed to use, greater or less, and what do i WRITE inside the right box.

 

Screen Shot 2022-09-30 at 10.28.03 AM.png

Categories:
  • emadrigal Profile Picture
    Microsoft Employee on at

    Hi! @cchan000 

     

    In that case you should use less than or equal to, depending on what you want. I found this solved post that might be helpful on what you are trying to do:

     

    Solved: Flow for Next Review Date within 30 days from toda... - Power Platform Community (microsoft.com)

     

    They solved that using this:

     

    Use the formatDate function as you can see in the picture below in the red text and also the addDays Function

     

    emadrigal_1-1664565989928.png

     

    You can change the highlighted text and use you Start Date Column in SharePoint here 

     

     

    Let me know if it this helps you!

     

    Regards,

     

    Community Support Team - Edgar Madrigal

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. If you like my response, please give it a Thumbs Up.

  • cchan000 Profile Picture
    359 on at

    @emadrigal hi.

     

    am i allowed to it like this? i put the compose first, then i added the conditions (all of them under it).

    Screen Shot 2022-10-01 at 8.53.50 AM.png

  • emadrigal Profile Picture
    Microsoft Employee on at

    Hello @cchan000 

     

    If you want the flow to only run if those 4 conditions are met, then yes that should work.

     

    Let me know if that works.

     

    Regards,

     

    Community Support Team - Edgar Madrigal

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. If you like my response, please give it a Thumbs Up.

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 426

#2
11manish Profile Picture

11manish 349 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard