cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
MRT-KLS
Level: Powered On

O365 - on modified event - delete/modify event in receiver calendar

Hi

 

I'm trying to create a flow, or really multiple flows that will do:

 

1. when event is created in primary calendar, create same event in secondary

2. when event in primary is modified, modify the same event in secondary calendar

 

problem is that the ID's do not match, so when the 2nd flow is triggered by a modification to an event, then it will try to get the event in the secondary calendar but fail because it cannot find the event based on 'id'.

 

Can someone guide me..

I tried to use stuff from this blog:

 

https://brechtvn.wordpress.com/2017/02/05/sync-office-365-calendar-with-google-calandar-using-micros...

 

but am not having any luck :-(

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: O365 - on modified event - delete/modify event in receiver calendar

Hi @MRT-KLS,

 

I think you have noticed that there is a condition added before update the Google Calendar Event, which is used to identify the proper Event and get the Event Id from the Get Events action.

So if here you are working with the Office 365 Event, then you should build a part for Flow to use to find the proper Event in the second Calendar.

For Example, under your first Flow, when create an Event under Second Calendar, use the Event Body Input as the part to identify the Event.

Then under the second Flow, use the condition and the body field to fitler the event under second calendar.

Formula should be:

@contains(items('Apply_to_each')?['Body'], concat('Calendar Event:',triggerBody()?['Id']))

See example:

80.PNG

83.PNG

Results:

84.PNG

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
6 REPLIES 6
Community Support Team
Community Support Team

Re: O365 - on modified event - delete/modify event in receiver calendar

Hi @MRT-KLS,

 

I think you have noticed that there is a condition added before update the Google Calendar Event, which is used to identify the proper Event and get the Event Id from the Get Events action.

So if here you are working with the Office 365 Event, then you should build a part for Flow to use to find the proper Event in the second Calendar.

For Example, under your first Flow, when create an Event under Second Calendar, use the Event Body Input as the part to identify the Event.

Then under the second Flow, use the condition and the body field to fitler the event under second calendar.

Formula should be:

@contains(items('Apply_to_each')?['Body'], concat('Calendar Event:',triggerBody()?['Id']))

See example:

80.PNG

83.PNG

Results:

84.PNG

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
MRT-KLS
Level: Powered On

Re: O365 - on modified event - delete/modify event in receiver calendar

Hi @v-micsh-msft

 

Thak you SO much for your answer... it's definetely pointing me in the right direction.

 

There's still something amiss.. let me first show you my setup..

 

flow.png

 

When I resubmit this flow after doing a change and updating folders in outlook calendar it gives me 256 entries and a result of "FALSE" for them all..

 

flowresults.png

 

 

So I am missing something.. just not sure what...

 

I can still push a NEW event to the 2nd calendar but the modification flow is not running correctly

MRT-KLS
Level: Powered On

Re: O365 - on modified event - delete/modify event in receiver calendar

oh and this is my "create event"..

 

createEvent.png

Community Support Team
Community Support Team

Re: O365 - on modified event - delete/modify event in receiver calendar

Hi @MRT-KLS,

Please take a try to switch the condition as below:

@contains(items('Apply_to_each')?['Body'],triggerBody()?['Id'])

See if this would make any difference.

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Omi
Level: Powered On

Re: O365 - on modified event - delete/modify event in receiver calendar

Hi ,

 

I am also facing the same issue but I have SharePoint calendars. How can I modify and copy the events to the secondary calendar.

Miccal
Level: Power Up

Re: O365 - on modified event - delete/modify event in receiver calendar

Will this work for going in the other direction as well?  I would like to have 2 way sync so I can use google assistant to manage my o365 cal.  I know I can use Cortanna but she just doesn't work well on the android phones yet.

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

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

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 Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 50 members 4,899 guests
Please welcome our newest community members: