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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Get my shifts using flow
Power Automate
Unanswered

Get my shifts using flow

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Great to finally see some Shifts functionality in Microsoft flow, althought the current preview options are so limited it basically renders them pointless, hopefully this will change in time...

 

Has anyone managed to use the current flow activities to get all of the shifts assigned to themselves? I'm struggling to locate where (within flow) I can find my ID and then filter out all of my shifts within a specific date range

Categories:
  • Gristy Profile Picture
    2,429 on at

    Try Shifts: List all team shifts.

     

    Then can you use a Select and Filter array to get the details you want and filter out only your records?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Yes, but that gives me all of the teams shifts, not mine specifically. I can see nowhere currently where I can get my teams unique identifier to filter out my shifts, unless this is buried somewhere within the configuration

  • Gristy Profile Picture
    2,429 on at

    In Office 365 Click your name on the top right

    Click My profile

    in the URL it will show your user id i.e. mine is: e91e8349-084d-41db-b5c8-f794528de425

     

    this is the ID returned by the teams API in the user field of list all shifts -> Shifts Response Shifts Assigned to User ID.

     

    I have a schedule with two users, my account has 2 shifts, the other account has 1 shift.

     

    This is my flow to get my shifts (Obviously grab whatever details you need. Run the Select before adding the Parse JSON to grab the schema for the payload depending on what you select.:

     

    1.png

     

     

  • Gristy Profile Picture
    2,429 on at

    Also the action Get My profile (V2) returns the ID value if you wanted to get it dynamically for yourself, or you could use the Get user profile (V2) to get another users

  • TekniklynotaTek Profile Picture
    on at

    @Gristy I realize this is a pretty old post but I am looking for help with something similar. What would the Parse JSON look like in the above example?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 389

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard