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

How do I add recurrence parameter using the Create a Group Event action?

Hi.

 

I am trying to create an event an a group calendar when an item is added to a list. I am able to do this using the "Create a group Event" action. However I need these events to occur on a "yearly" basis. 

 

If you see the "Create a group event V2" below, there is no option for recurrence.

create a group event v2.png

 

 

I cannot use the "Outlook 365 - Create an event" action because it will error out. But the "Outlook 365 - Create an event" action has the parameters I need (see below).

Outlook 365 - Create an event.png

 

 

Can someone tell me how I can add the recurrence parameter into the "Create a group event" action?

 

 

 

If not, is there a way I can work around this using the "Send an HTTP request" for Office 365 Groups? (See below)

http request.png

 

I know the HTTP request body content are in json format. So if this is our only method, can you give me a json template for creating a new group event WITH the yearly occurrence?

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Schwartz_Cory
Helper I
Helper I

HTTP Request did the trick. Here's my json code if it helps anyone else.

 

{
"subject": "@{variables('varFirstName')} @{variables('varLastName')}",
"body": {
"contentType": "HTML",
"content": "Happy Anniversary @{variables('varFirstName')}!"
},
"start": {
"dateTime": "@{variables('varAnniversaryStart')}",
"timeZone": "Eastern Standard Time"
},
"end": {
"dateTime": "@{variables('varAnniversaryEnd')}",
"timeZone": "Eastern Standard Time"
},
"isAllDay": true,
"responseRequested": false,
"showAs": "free",
"isReminderOn": false,
"allowNewTimeProposals": false,
"attendees": [
{
"emailAddress": {
"address":"@{variables('varEmailAddress')}",
"name": "@{triggerOutputs()?['body/Author/DisplayName']}"
},
"type": "required"
}
],
"recurrence": {
"pattern": {
"type": "absoluteYearly",
"interval": 1,
"month": @{int(formatDateTime(variables('varAnniversaryStart'),'MM'))},
"dayOfMonth": @{int(formatDateTime(variables('varAnniversaryStart'),'dd'))},
"firstDayOfWeek": "sunday",
"index": "first"
},
"range": {
"type": "noEnd",
"startDate": "@{variables('varAnniversaryStart')}",
"endDate": "0001-01-01",
"recurrenceTimeZone": "Eastern Standard Time",
"numberOfOccurrences": 0
}
}
}

 

 

View solution in original post

2 REPLIES 2
Schwartz_Cory
Helper I
Helper I

I just noticed that the Office 365 Groups actions do not have a "remove" or "update" action, only "create" is what they have. So this means my only way to make this work for our use case is either

  1. Be able to create and remove group events using the outlook 365 create and remove actions

    OR

  2. Use the Send a HTTP Request action under Office 365 Groups and make my own json coding for:
    • creating a new group event
    • deleting a group event
    • (at the moment, i do not need to update any group events, but would like that feature incase I do need it)

 

 

So if anyone can provide me a guide on how to make a HTTP Request to create/delete office 365 group events, that would be great!

Schwartz_Cory
Helper I
Helper I

HTTP Request did the trick. Here's my json code if it helps anyone else.

 

{
"subject": "@{variables('varFirstName')} @{variables('varLastName')}",
"body": {
"contentType": "HTML",
"content": "Happy Anniversary @{variables('varFirstName')}!"
},
"start": {
"dateTime": "@{variables('varAnniversaryStart')}",
"timeZone": "Eastern Standard Time"
},
"end": {
"dateTime": "@{variables('varAnniversaryEnd')}",
"timeZone": "Eastern Standard Time"
},
"isAllDay": true,
"responseRequested": false,
"showAs": "free",
"isReminderOn": false,
"allowNewTimeProposals": false,
"attendees": [
{
"emailAddress": {
"address":"@{variables('varEmailAddress')}",
"name": "@{triggerOutputs()?['body/Author/DisplayName']}"
},
"type": "required"
}
],
"recurrence": {
"pattern": {
"type": "absoluteYearly",
"interval": 1,
"month": @{int(formatDateTime(variables('varAnniversaryStart'),'MM'))},
"dayOfMonth": @{int(formatDateTime(variables('varAnniversaryStart'),'dd'))},
"firstDayOfWeek": "sunday",
"index": "first"
},
"range": {
"type": "noEnd",
"startDate": "@{variables('varAnniversaryStart')}",
"endDate": "0001-01-01",
"recurrenceTimeZone": "Eastern Standard Time",
"numberOfOccurrences": 0
}
}
}

 

 

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (3,046)