web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Assign Approvers by Fi...
Power Automate
Unanswered

Assign Approvers by Filtering a SharePoint List

(0) ShareShare
ReportReport
Posted on by

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 stepImg6.PNGImg7-edit.pngImg1.PNGImg2-edit.pngImg3-edit.pngImg4-edit.pngImg5-edit.png?

Categories:
I have the same question (0)
  • Amit_Sharma Profile Picture
    1,569 Super User 2024 Season 1 on at

    Hi @seleff Could you Show me Both Share Point List Picture, I Will Create sample for you.

  • Amit_Sharma Profile Picture
    1,569 Super User 2024 Season 1 on at

    Hi @seleff ,

    I Have Created Sample For you,

     

    1. The Trigger Action Is For a selected item Which Trigger When Someone Select Any Particular project.

     

    Amit_Sharma_0-1671270781126.png

     


    2. After That Use Get Item (Get item Project List) Action Which Return Details of Selected Row from Project List.

    Amit_Sharma_1-1671270860503.pngAmit_Sharma_2-1671270884205.png

     

    3. After that Use Get Items (Get items Approvals) Action which Return Details of Approvals according to given condition.

     

    t1.png

     
     
     
     
     

    t3.png

     

    4. After that initialize variable and select type is string.

    t4.png

     


    5. Then Use Apply to each Action and pass body that return by get approvers action.

     

    t5.png

     

    6. In Apply to each Action Use Appen to String variable Action and pass Approver Email Dynamic value that return by get approvers action and enter semicolon(;) .

     

    t6.pngt7.png

     

     

    7. After That use Start and wait for an approval Action and pass variable value in Assigned to Field.

     

    t8.png

     

    Complete Flow

     

    t9.png

     
    -----------------------------------------------------------------------
    Did I answer your question? Please Mark my post as a solution
    If you liked my response, please consider giving it a thumb up
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard