I have not had the chance to keep up with all the great things that can be done with (flow)/Power Automate now. Do you know a good repository to find good code?
I’m looking to have a Form to submit requests that needs approval by the Users manager and if approved to keep asking for approval by the next manager until a specified attribute (keyword in Title).
Select My flows > New > Automated-from blank, in the top left of the screen.
Give your flow a name and then add the SharePoint – When an item is created or modified trigger.
Enter the Site Address for the SharePoint site that hosts your vacation request list, and then select a list from List Name.
Select New step, add the Office 365 Get manager (V2) action, select the User (UPN) box, and then add the Created By Email token to it.
The Created By Email token is located under the When an item is created or modified category of the Dynamic content list. This token dynamically provides access to data about the manager for the person who created the item in SharePoint.
Select New step, add another Office 365 Get manager (V2) action, and then add the Mail token to the User (UPN) box.
Select New step, add the Start and wait for an approval action, and then select Approve/Reject – Everyone must approve from the Approval type list.
When a flow with the Start and wait for an approval action is configured with Approve/Reject – Everyone must approve, it waits until all Assigned to approve or at least one Assigned to rejects the approval request.
Select New Step, search for “send an email”, add the Office 365 Outlook Send an email (V2) action, and then configure the action to send an email with the results of the request to the person who wants to go on vacation.
Here’s an example of what the Send an email (V2) card might look like.
At the top of the screen, select Save to save your flow.
Congratulations, your flow is complete!