web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Suggested answer

Compare dates

(0) ShareShare
ReportReport
Posted on by 18
Good morning, I am new to flows. I have a sharepoint list with items that have a column named PM DATE. What I am trying to do is create an automated flow to compare today's date to the PM DATE column for all the items to see if todays date is 30 days or less away then send an email. I've watched quite a few videos and tried but cant seem to get the right results. So far I have:
 
Recurrence set up okay
Compose / convertTimeZone(utcNow(),'UTC','Eastern Standard Time','MM-dd-yyyy' )
Get Items- pulling in my sharepopint home address and correct list
This step is where i need help ....... every video says an APPLY TO EACH (this is where i need help)
 
I know how to send the emails in the True condition.
I have the same question (0)
  • Suggested answer
    Tomac Profile Picture
    3,198 Moderator on at
    Compare dates
     
    You'll want to try this structure:
     
    1. Trigger: Recurrence
    2. Action: Get Items - targeting your SP list
    3. Action: Apply To Each - running on the Value output from Get Items
      1. Action: Condition
        1. Left Side: dynamic content for PM Date from your Get Items action
        2. Middle: less than or equal to
        3. Right side: your convertTimeZone expression (no need to use a Compose earlier)
        4. If Yes: Send the email and then progress to the next list item
        5. If No: Do nothing, the flow will progress to the next list item
  • abm abm Profile Picture
    32,617 Most Valuable Professional on at
    Compare dates
    You can directly filter using Get Items with OData Filter:
     
    PM_DATE ge '@{formatDateTime(addDays(utcNow(), -30), 'yyyy-MM-dd')}'
     
  • CU10021407-0 Profile Picture
    18 on at
    Compare dates
    @Tomac Nothing happened. 
     
  • CU10021407-0 Profile Picture
    18 on at
    Compare dates
    @abm abm - i added that formula to the OData filter in the get items. do I still do a for each?

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

Coming soon: forum hierarchy changes

In our never-ending quest to improve we are simplifying the forum hierarchy…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 438 Moderator

#3
chiaraalina Profile Picture

chiaraalina 258

Last 30 days Overall leaderboard