cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Joachim_
New Member

Outlook Calendar Sync

I am currently trying to create a flow which will connect two different Outlook accounts from two different corporations. It's supposed to sync the calendar events created from one Outlook account to the other. 
I got it up and running with a trigger template (When an event is created) and linked it to one Outlook account(under connections).
Then i created the action(Download Events) and linked it to the account which should download the events from said trigger account. 
Only problem is, when i create an event neither are syncing, but the flow is up and running.
Is there something i missed? Some action between the two templates or is it simply not possible to sync two different outlook calendars from different corporations?

 

5 REPLIES 5
v-bacao-msft
Community Support
Community Support

Hi @Joachim_,

 

Do you want to create a Flow that automatically ignores events that you don't want to sync?

You could try to create a custom Calendar for events that need to be synchronized, and only create events that need to be synchronized in this calendar.

Then select the custom Calendar when configuring the Calendar id.

16.jpg

Please take a try.

 

Best Regards,

Barry

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

Yes thank you i tried that already and i worked quite good.
However, i had a problem with stacking events, deleting events and updating events.
I have now created one which fixes all of the above and now i seem to have a problem with deleting events. 
I created a switch which matches the situation which could be: added events, updated events or deleted events.
When an event is deleted, it won't download the deleted events because of the ISO International format for time(8601).
I checked the international format, and then i crossreferenced with the format i wrote and it seems to be correct. It is also the one i used for updating events and adding events.
Maybe i need to write it in another way because it is about deleted events?


This is what i wrote at "Start Time": 

addDays(items('Apply_to_each')?['start'], -60,'yyyy-MM-ddThh:mm:ssZ')
 
This is what i wrote at "End Time": 
addDays(items('Apply_to_each')?['end'], 180,'yyyy-MM-ddThh:mm:ssZ')

Første billede til Forum.PNGBillede 2 til Forum.PNG

Hi @Joachim_,

 

Do you want to filter the eligible event and then get its event Id and then configure it in Delete event action?

Your method seems to be valid in my opinion, but the Id configured in "Delete event" action should not be "Current item". The "Current item" contains not only the event Id, but also other information about the event. .

You should use the expression "items('Iterate_through_deleted_events')['Id']" to get the event id:

items('Iterate_through_deleted_events')['Id']

97.PNG

What is filled in the specific "items()" depends on the name of your action. If there is a space, you need to replace the space with "_".

Please take a try.

 

Best Regards,

Barry

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

Thank you, i can't currently test it. Because now the timeformat is incorrect, only in "Deleted events". Even when the format is the same in "added events" and "updated events". Is there a difference between the three, when the events are actually deleted? 

 

This is what is wrote in "start time": 

addDays(items('Apply_to_each')?['start'], -60,'yyyy-MM-ddThh:mm:ssZ')
 
And this is what i wrote in "end time":
addDays(items('Apply_to_each')?['end'], 180,'yyyy-MM-ddThh:mm:ssZ')

 

flow.PNG

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,228)