web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Automate
Unanswered

Outlook Calendar Sync

(0) ShareShare
ReportReport
Posted on by 6

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?

 

Categories:
I have the same question (0)
  • v-bacao-msft Profile Picture
    on at

    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

  • Joachim_ Profile Picture
    6 on at

    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')
  • Joachim_ Profile Picture
    6 on at

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

  • v-bacao-msft Profile Picture
    on at

    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

  • Joachim_ Profile Picture
    6 on at

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard