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 Platform Community / Forums / Power Automate / Team Shifts to Outlook...
Power Automate
Suggested Answer

Team Shifts to Outlook calendar

(0) ShareShare
ReportReport
Posted on by 3
My goal is to use Teams- Shifts to set up the shifts for my employees. I would then like to use Power Automate to create calendar events in Outlook that match the shifts created. I found this walkthrough:
 
Which works almost perfectly for creating events(timezone sometimes seems to switch for no reason?). However, whenever I try to update or delete a shift, I get an error message in my flow saying it has failed because the resource ID cannot be found. As far as I understand, the resource ID hasn't changed even after you edit a shift. When deleting shifts, I expected it to detect that the shift with that resource ID had been deleted and then instruct Outlook to remove the calendar event. However, it doesn't. Update will not change anything about a shift within Outlook. 
 
looking for any ideas where I might have gone wrong! 
Categories:
I have the same question (0)
  • Suggested answer
    Riyaz_riz11 Profile Picture
    3,893 Super User 2025 Season 2 on at
    Hi,
     

    Microsoft Shifts to Outlook Calendar - Complete Sync Solution

    Root Cause Analysis

    The issues you're experiencing are due to several limitations:


    1. Resource ID Mismatch: Shifts resource IDs don't directly map to Outlook calendar event IDs

    2. Timezone Inconsistency: Shifts uses different timezone handling than Outlook

    3. Event Tracking: No proper mechanism to track which Outlook events correspond to which shifts

    4. Update/Delete Logic: Basic flows don't handle the relationship between Shifts and Outlook events


    5.  

    Complete Solution Architecture

    1. Data Storage Layer (SharePoint List)

    Create a SharePoint list called "ShiftsCalendarMapping" with columns:


    • ShiftID (Single line of text) - Primary key from Shifts

    • OutlookEventID (Single line of text) - Corresponding Outlook event ID

    • EmployeeEmail (Single line of text) - Employee's email

    • ShiftStart (Date and time) - Shift start time

    • ShiftEnd (Date and time) - Shift end time

    • LastModified (Date and time) - Last update timestamp

    • Status (Choice: Active, Deleted, Updated) - Event status


    •  

    2. Main Flow Structure

    Flow 1: Shifts Event Handler

    Trigger: When a shift is added, updated, or deleted
    Actions:

    1. Get trigger details
    2. Parse shift information
    3. Check mapping table for existing records
    4. Route to appropriate sub-flow based on action type

    Flow 2: Create Calendar Event

    Trigger: Called from main flow
    Actions:

    1. Create Outlook calendar event
    2. Store mapping in SharePoint list
    3. Handle timezone conversion properly

    Flow 3: Update Calendar Event

    Trigger: Called from main flow
    Actions:

    1. Get existing event ID from mapping table
    2. Update Outlook calendar event
    3. Update mapping record

    Flow 4: Delete Calendar Event

    Trigger: Called from main flow
    Actions:

    1. Get existing event ID from mapping table
    2. Delete Outlook calendar event
    3. Mark mapping record as deleted
    
     
    If I have answered your question, please mark it as the preferred solution ✅ . If you like my response, please give it a Thumbs Up 👍.
    Regards,
    Riyaz
  • CC-14072057-0 Profile Picture
    3 on at
    Once you get to updating a shift, which action tells it to pick which item to update? 

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 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard