cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Oskarkuus Post Partisan
Post Partisan

Microsoft Flow - Export events from sharepoint calendar "today + 5 days"

Hi!

 

I hope someone can help me with a thing.
I have this line that i use to export Todays dates events from an sharepoint calendar.

This works really well!

EventDate ge datetime'@{formatDateTime(utcNow(),'yyyy-MM-dd')}T00:00:00' and EventDate le datetime'@{formatDateTime(utcNow(),'yyyy-MM-dd')}T23:59:59'


How would i change this one to make it extract all events from todays date and 5 days ahead.
So if it is monday morning. I want to extract all events from Monday, Tuesday, Wednesday, Thursday and Friday (5 days).

 

I have a flow that is triggered every monday morning.

I want to get all events from a calendar for the comming week (monday-friday).

 

How do i change above formula?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Re: Microsoft Flow - Export events from sharepoint calendar "today + 5 days"

Hi @Oskarkuus,

 

You could change the formula as below:

EventDate ge datetime'@{formatDateTime(utcNow(),'yyyy-MM-dd')}T00:00:00' and EventDate le datetime'@{formatDateTime(addDays(utcNow(),5),'yyyy-MM-dd')}T23:59:59'

 

Best regards,

Alice

View solution in original post

2 REPLIES 2
Community Support
Community Support

Re: Microsoft Flow - Export events from sharepoint calendar "today + 5 days"

Hi @Oskarkuus,

 

You could change the formula as below:

EventDate ge datetime'@{formatDateTime(utcNow(),'yyyy-MM-dd')}T00:00:00' and EventDate le datetime'@{formatDateTime(addDays(utcNow(),5),'yyyy-MM-dd')}T23:59:59'

 

Best regards,

Alice

View solution in original post

Oskarkuus Post Partisan
Post Partisan

Re: Microsoft Flow - Export events from sharepoint calendar "today + 5 days"

Thank you!

 

But how do you make it so that the timestamp follows another timezone?

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (6,778)