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...
Solved! Go to Solution.
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.
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.
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
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"
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.
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!
User | Count |
---|---|
44 | |
40 | |
38 | |
36 | |
23 |
User | Count |
---|---|
39 | |
38 | |
32 | |
31 | |
28 |