I know the title may be a little confusing, so I will do my best to explain this issue in detail here.
Use Case: Tracking engineering projects and submitting them for approval.
I have one SharePoint list named "Project List" that contains details for each project as separate line items.
I have a second SharePoint List named "Approvers" that contains the names of each approver for each location. The "Approvers" column in this list is set to "Person".
I created a flow from "Project List" that is triggered by "For a selected item". The people that need to approve each project change based on the location of the project, as well as the project size. How can I automatically populate the "Assigned to" field with the emails of only those people pertinent to the selected project?
pertinent "Approvers" list column headers: Approver Role (single line of text), Approver (person), Site (single line of text), Level (number).
pertinent "Project List" column headers: Cost (currency), Site (single line of text)
I need to select all approvers that meet the following criteria and add their emails to the approval action:
- They are an approver for the same site as the selected item from "Project List"; Site (from "Approvers") = Site (from "Project List")
- Their Level (from "Approvers") is < the Cost (from "Project list")
How do I return a list of semicolon separated emails from "Get items" that I can add to the "Assigned to" field in the approval step?