Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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?

 

  • Joachim_ Profile Picture
    6 on at
    Re: Outlook Calendar Sync

    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

  • v-bacao-msft Profile Picture
    on at
    Re: Outlook Calendar Sync

    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
    Re: Outlook Calendar Sync

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

  • Joachim_ Profile Picture
    6 on at
    Re: Outlook Calendar Sync

    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')
  • v-bacao-msft Profile Picture
    on at
    Re: Outlook Calendar Sync

    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

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,668 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow