Microsoft Shifts for Teams Power Automate Errors

Copper Contributor

Hi all

 

I've been looking into the Shifts (Preview) connector in Power Automate to approve open shift requests. I've managed to get the templates from https://github.com/OfficeDev/Microsoft-Teams-Shifts-Power-Automate-Templates but I'm having issues.

 

Every time the flow runs, it fails with a "Forbidden" message on each Open Shift Request, and a full error:

 

{"error":{"code":"Forbidden","message":"This shift request is not in a state to be approved.","details":[],"innererror":{"code":"ShiftRequestsCannotBeActedUpon"}}}

 

I can't find any useful links online. I have access to approve requests in the app.

 

Does anyone have any ideas? 

 

Thanks

 

Andrew

1 Reply

Hi @acartwright1986 ,

 

Could you send a screenshot of the step that fails within the run please? I would say it is a permissions issue but as for where, would need to know more. In my setup I did the offer request but should be similar. However I did setup the flow as global admin and the Shifts for Teams connections were setup with the same account and I then setup a Team as a demo account, associated Shifts with it, created Shift, offered up that shift and the flow executed without issue.

So if you could advise in terms of the account that the flow is running under, the account used for the connections used for the Shifts flow actions, accounts that are owners and members of the Team associated with the shift in relation to the example request you are doing.

 

Thanks

 

Henry