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 / Flow will not give me ...
Power Automate
Unanswered

Flow will not give me all dates that are entered on a Sharepoint Calendar

(0) ShareShare
ReportReport
Posted on by

Hello!

I am needing to create a Flow that sends an email out Monday-Friday (each day) showing who is on vacation from our Sharepoint Calendar. I have a Flow that works but it is only sending the first day of vacation and not each day if the event is recurring.

Example: Tom enters vacation on the sharepoint calendar starting Monday 2/11/2019 and ending Friday 2/15/2019. I need the flow to send an email all 5 days showing that he is on vacation.

Also how do you make Flow only send an email during the work week and not on weekends? 

I appreciate all assistance!

02-11-2019 2-52-45 PM.jpg02-11-2019 2-52-56 PM.jpg02-11-2019 2-53-07 PM.jpg02-11-2019 2-53-15 PM.jpg

 

Categories:
I have the same question (0)
  • MarkStokes Profile Picture
    561 on at
    Yeah. Your date filters are wrong.

    You are just filtering items where the Start Date is today. If the start date was yesterday, or two days ago, then it won’t match.

    Your filter needs to be:
    (Where the start date is less than or equal to today) AND (the end date is greater than or equal to today)

    Personally, I’d also put that as a filter OData expression in the SharePoint Get Items action. This would look something like:
    StartDate le ‘@{formatDateTime(utcNow(),’yyyy-MM-dd’)}’ and EndDate ge ‘@{formatDateTime(utcNow(),’yyyy-MM-dd’)}’

    Of course you need to change a few things. Change the StartDate and EndDate column references to the actual “internal name” of your SharePoint columns, fix up the stoopid single quotes (‘’) that my iPhone puts in, and put the @{} bits as expressions in the filter box.

    Hope this helps

    - Mark
  • Tbruns Profile Picture
    on at

    I am sorry I cannot get it to work. In the Filter Query of the Get Items I have this.02-12-2019 12-53-18 PM.jpg

     

    What am I doing wrong?

  • Verified answer
    MarkStokes Profile Picture
    561 on at

    It looks like you don't have single quotes at the end of your dates.

     

    It should be

    EventDate le '2019-02-08' and EndDate ge '2019-02-14'

     

    See how the date is enclosed in single speech marks?

     

    - Mark

  • Tbruns Profile Picture
    on at

    Thank you! I wish I had someone to assist me like that all the time! Woman Happy

  • Tbruns Profile Picture
    on at

    How can I get this flow to not send an email when there are no events on the calendar?

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

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard