
Announcements
New Power Automate user, trying to automate a simple process.
We have a large number of team members that have the ability to request shifts, and do so on a regular basis. A team of managers all have the ability to assess and approve requests.
I would like to create a flow that results in a message being posted to a private teams channel when a shifts request is generated by a team member. This would mean all the channel members (team owners) are notified and can discuss the request if necessary prior to it being approved.
We don't need the shifts request to be automatically approved or trigger an approval process within teams. We just need a simple message posted to the channel with the shifts request details (team member name + day of the shift requested).
I can use the "When an Open Shift request is created, updated or deleted" Trigger, which works fine, and I have the 'Post message in chat or channel', which also works fine. The issue is that the content of the message posted to the channel does not contain any information associated with the request.
Essentially, I can't find the syntax to call the name of the user that created the request or the details of the shift requested. The dynamic content available associated with shifts only includes Resource ID and Team ID.
I'm aware this is a simple task, and I might be simply missing something in the way Power Automate Functions. All comments and assistance would be appreciated.
Thanks!
For anyone interested, I managed to crack this one. You can use 'get user' and 'get a shift' as part of the operation to call up the details associated with who made the shift request and its details. Then you can use the dynamic content associated with those actions in your teams post. Here's a screenshot.