cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper II
Helper II

Monthly Reminder for SharePoint Events

Hello,

 

I'm working on a flow which requires a monthly email that goes to a certain user that will display all calendar events for the current month.  Basically the filter criteria would be [Today]+30.  I only want to display the next 30 days worth of events that are in the calendar.

 

I assume the Top Count feature from "Get Items" is the correct tool to use but I don't know what the logic would be.  Does anyone have advice?

 

Here's the flow I have thus far...

 

Timer Job1.png

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Helper II
Helper II

Re: Monthly Reminder for SharePoint Events

Looks like I had a space in there where I shouldn't have.


For anyone who's interested.  Here's the flow on how to run a monthly scheduled job that will send you a email that lists all events within the next 30 days from a SharePoint calendar.

 

Final Flow1.png

 

 

View solution in original post

4 REPLIES 4
Highlighted
Community Support
Community Support

Re: Monthly Reminder for SharePoint Events

Hi @brandonklittle,

 

Do you want to get items that will occur between Today and Today+30?

 

If yes, you could use Filter query field to return the items you want.

 

The flow could be created likes below.

 

In the Filter Query filed, use the following function.

EventDate ge utcNow() and EventDate le addDays(utcnow(),30)

Note: The EventDate is the actual name of Start time in flow, and please make sure add a single quote around the function in the box.

 

Then use the action Create HTML table so that you could send all the filtered items in a time.

 

Finally, in the Send an email action, enable the If yes for the Is HTML field.

1.PNG

 

Please take a try with it on your side and feel free reply if you need more help.

 

More details about the Odata filter query, please check it at here:

https://docs.microsoft.com/en-us/previous-versions/dynamicsnav-2016/hh169248(v=nav.90)

 

 

 

Best regards,

Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Helper II
Helper II

Re: Monthly Reminder for SharePoint Events

Thanks @v-yamao-msft I'll give that a try today and let you know how it goes.

Highlighted
Helper II
Helper II

Re: Monthly Reminder for SharePoint Events

I've added the logic and the flow fails on the get items step.  Error is:

 


  "status"400,
  "message""The expression \"EventDate ge2018-07-10T16:32:57.3230909Z and EventDate le addDays(utcnow(),30)\" is not valid.\r\nclientRequestId: f8d7c642-c872-4768-80bb-673624de5e05\r\nserviceRequestId: 6c73799e-5053-6000-4404-897e62f0dd21"

 

Get Items1.png

Highlighted
Helper II
Helper II

Re: Monthly Reminder for SharePoint Events

Looks like I had a space in there where I shouldn't have.


For anyone who's interested.  Here's the flow on how to run a monthly scheduled job that will send you a email that lists all events within the next 30 days from a SharePoint calendar.

 

Final Flow1.png

 

 

View solution in original post

Helpful resources

Announcements
FirstImage

Microsoft Ignite 2020

Check out the announcement of Power Platform content at Microsoft Ignite!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,892)