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 / Comparing today's date...
Power Automate
Unanswered

Comparing today's date to a Sharepoint Date column

(0) ShareShare
ReportReport
Posted on by 14

I have a Sharepoint list with a StartDate column formated as Date Only.  I want to set up a Recurrance flow to run daily and check the value of the StartDate column for each item in the Sharepoint list and send an email for each item that the StartDate is less than Today.

 

I created a flow that runs daily and GETS the items from the Sharepoint list

Then Apply to Each using the VALUE output from the GET action

Then COMPOSE with the following inputs: @formatDateTime(@{items('Apply_to_each')?['StartDate']},'yyyy-MM-dd'

Then COMPOSE with the following inputs: @utcnow('yyyy-MM-dd')

Then CONDTION - @less(outputs('Compose'), outputs('Compose_2'))

Then IF YES - Send an email

 

The flow is working but it is sending an email for ALL items in the list including items with STARTDATE greater than today.

 

I have looked through similiar posts on this forum and the syntax appears to be correct but the results are not what i am expecting.  What am I missing?  Thank you.

Categories:
I have the same question (0)
  • v-xida-msft Profile Picture
    on at

    Hi @EdKOffice365,

     

    I think there is something wrong with your formula in first Compose action. I have made a test on my side and the flow works as you expected.

    Please take a try to type the following formula in your first Compose action:

    “@formatDateTime(item()?['StartDate'],'yyyy-MM-dd')”

     

    Best regards,

    Kris

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

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard