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 / Shifts for Microsoft T...
Power Automate
Unanswered

Shifts for Microsoft Teams "Get a Shift" error

(1) ShareShare
ReportReport
Posted on by 6
Hi,
 
Using the "Get a Shift" action to retrieve a Shift, I receive the following error since last week:

Action 'Get_a_Shift' failed: {"error":{"code":"BadRequest","message":"Shift ID must have SHFT_guid pattern (GUIDs in lower case).","details":[]}}

The ID comes the trigger "When a Time Off request is created, updated or deleted":
https://learn.microsoft.com/en-ca/connectors/shifts/#when-a-time-off-request-is-created,-updated-or-deleted
 
And this trigger returns this:
 
    "body": {
        "subscriptionId""*********",
        "changeType""created",
        "subscriptionExpirationDateTime""*********",
        "resource""teams/*********/schedule/timeOffRequests/SREQ_*********",
        "resourceData": {
            "id""SREQ_*********",
            "@odata.type""#Microsoft.Graph.TimeOffRequest",
            "@odata.id""teams/*********/schedule/timeOffRequests/SREQ_*********",
            "teamId""*********"
        },
        "tenantId""*********"
    }
 
The Shift ID has the prefix "SREQ_" but when changing it to "SHFT_", with a concat/substring, the Shift is not found.
 
Does anybody have any idea what changed and/or how to fix this?
 
Many thanks,
Vincent


 
Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,195 Most Valuable Professional on at
     
    Do you want to get the details of the Time off request? In that case I would use the Get a Time Off request action instead.
    https://learn.microsoft.com/en-us/connectors/shifts/#get-a-time-off-request

    Or do you have a specific reason why you want to use the other action instead?



     
    Happy to help out 😁

    I share more #PowerAutomate and #SharePointOnline content on my Blog, LinkedIn, Bluesky profile or Youtube Channel
  • VB-07051744-0 Profile Picture
    6 on at
     
    Indeed, it works with this action and I will probably use it for now...
     
    The reason to use "Get a Shift" action was to include all Shifts types (Time Off, Swap, Offer).
     
    Thanks!
    Vincent

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

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard