Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Get my shifts using flow

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

Resident Rockstar
Resident Rockstar

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?

Frequent Visitor

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

Resident Rockstar
Resident Rockstar

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.:





Resident Rockstar
Resident Rockstar

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

Helpful resources

Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Users online (1,876)