How to create a recurrent event

This time a short blog about creating recurrent events. In SharePoint events lists you have the option to create events with recurrence settings. In this blog I will show you how you can create such an event via Power Automate.

Inspiration

This question from sharepointuser1:

Everything’s working fine except I noticed that when an event is recurring – the recurring settings don’t carry over on the individual team’s calendar.

Power Users Community thread: SharePoint Calendar – Recurring Event and Create Item Action.

RecurrenceData field

Like mentioned in the Power Users thread the challenge is to set the recurrence settings. Luckily there are some nice posts on the Internet which give a bit of insight on what this schema looks like.

First of all this REST API + Expand Recurring Calendar Events? thread on StackExchange was very useful. That thread made clear that you are able to retrieve the RecurrenceData field with a Send an HTTP request action. Below is an example of that in Power Automate.

getrecurrencedata

Recurrence Data schema

I also found this great blog from Justin on the SharePoint recurrence data schema. A blog from 2010 but it looks like the schema is still relevant. That resource is especially useful to find and explore the different patterns of the RecurrenceData field.

Below is for example a pattern for once a week on Sunday (weekly). The recurrence stops after two repeats.

Flow setup

The following flow can use this recurrence pattern and create a new event.
createitem_recurrencedata02

1. Add a Manually trigger a flow trigger action.

2. Add a Send an HTTP request to SharePoint action. Use a POST method and make sure it the URI is using the Events list.

3. For the body you can use something like below. Like mentioned earlier, this is a pattern for once a week on a Sunday (weekly). The recurrence stops after two repeats.

Happy testing!

You may also like...

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.