cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
brandonklittle
Level: Powered On

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
brandonklittle
Level: Powered On

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
Community Support Team
Community Support Team

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.
brandonklittle
Level: Powered On

Re: Monthly Reminder for SharePoint Events

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

brandonklittle
Level: Powered On

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

brandonklittle
Level: Powered On

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
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,718)