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 / Check if holiday date ...
Power Automate
Unanswered

Check if holiday date matches with today date & send Email.

(0) ShareShare
ReportReport
Posted on by 60

Dear Team Members,

 

1) I have a Sharepoint list in which leave start day and leave end end date of Leave are applied, I want to check if todays date matches and then send a email to my manager with list of all employee names.

 

Logic Used :

Now() >= StartDate & Now() <= Date

 

Flow Steps:

 
 
 

overallflow.JPG

 

flowsteps.JPG

 

Prsentday values:

 

Eswar1_0-1611311010211.png

 

 

 

condition.JPG

 

Checking the following condition : Now() >= UserStartDateTime & Now() <= UserEndDateTime

 

WhatsApp Image 2021-01-22 at 3.40.49 PM.jpegWhatsApp Image 2021-01-22 at 3.40.49 PM (1).jpeg

 

Getting an error with the filter query when executing:

 

 

 

 

Checked my Json value as well :

 

jsonvalue.JPG

 

Both the column values are of type strings.

 

Can you please help me with the completion of the flow and were I am going wrong in the query.

 

Thank you very much,

Eswar T

Categories:
I have the same question (0)
  • jdoss Profile Picture
    458 on at

    Add the formatted first day of leave and formatted last day of leave into variables as well and see what is returning there. 

  • Eswar1 Profile Picture
    60 on at

    Dear jdoss,

     

    I have added the first day into variables and this is the error I am getting.

     

    variables.png

     

    Eswar1_0-1611373566119.png

     

    Thanks.

  • jdoss Profile Picture
    458 on at

    I see the problem now. Your filter query isn't formatted correctly. The trigger body would be a recurrence which doesn't have a 'FirstDayOfLeave'.

    It needs to be in the format ColumnName ge PresentDate and ColumnName2 le PresentDate. 

    See this other thread: https://powerusers.microsoft.com/t5/Building-Flows/FLOW-Get-Items-Filter-SharePoint-list-on-Date/td-p/85238 

  • Eswar1 Profile Picture
    60 on at

    Thank you so much for the reply, I am able to get the flow running but I am not getting the correct values.

     

    Query:

     

    Eswar1_2-1612175995102.png

     

    The query has returned the results that are for previous years as well.

     

    Eswar1_0-1612175838057.png

     

    Results:

     

    Eswar1_1-1612175896855.png

     

     

    Thanks,

    Eswar

     

     

     

  • jdoss Profile Picture
    458 on at

    You may need to try to format the dates as 'yyyy-mm-dd'

    See this post: Solved: Filter query between date - Power Platform Community (microsoft.com)

  • Eswar1 Profile Picture
    60 on at

    I have tried changing the format the dates value to yyyy-mm-dd as suggested.

    Now i get the present day value to be a day before :

    Eswar1_0-1612217262284.png

     

     

    Again I tried to revert back the code to dd-mm-yyyy in this case i get the present date (2/2/2021).

     

    But in both cases the output of  filter of get Items shows values that are of previous years:

     

    Eswar1_1-1612217522432.png

    Kindly suggest.

     

    Thanks,

    Eswar T

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 308

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 226 Most Valuable Professional

Last 30 days Overall leaderboard