Skip to main content

Notifications

Community site session details

Community site session details

Session Id : rXilycYzIJSuu4Ospu3A+y
Power Automate - Building Flows
Answered

Get Items Filter Query off of People Picker field

Like (0) ShareShare
ReportReport
Posted on 15 Jul 2022 17:16:57 by 167

I am trying to create an approval workflow based off of two separate lists.

 

On my first list I have users submitting their weekly Time Sheet. One of the SharePoint columns they write to is a People Picker that they use to select their profile.

 

The Second List has multiple people picker fields. One of the fields is the 'Submitter' people picker. My thought process is to setup this list so the site admin can update the list with new employees. Those employees have specific users that would approve their time sheet.

 

So if User A submits, Approver A is selected within the flow. If User B submits, Approver B is selected to receive the approval email.

NathanFra_0-1657905342909.png

I need to filter my approvers list based off of whatever claims profile is submitted on my time sheet list.

 

Thanks!

  • MShark Profile Picture
    4 on 05 Apr 2023 at 21:58:15
    Re: Get Items Filter Query off of People Picker field

    I think I solved this for a people column that allows multiple people.  Instead of using the equals (eq) function use the substringof function.  So it would look like substringof('Employee Email', Submitter/EMail).  Where Employee Email would of course be your dynamic content that populates the employee email address.  The others left you hanging on this one.  Hope this helps!

  • Sameer1 Profile Picture
    2 on 31 Aug 2022 at 15:46:22
    Re: Get Items Filter Query off of People Picker field

    Getting the Error when trying to filter the People picker field with Get items -

     

    The query is not valid.
    clientRequestId: bcd58e92-4ba7-42a0-bfba-17ac4acc5031
    serviceRequestId: bcd58e92-4ba7-42a0-bfba-17ac4acc5031

     

    Approver/EMail eq 'rex.jones@technet.com' - This query isn't working 

  • Verified answer
    ScottShearer Profile Picture
    25,223 Most Valuable Professional on 15 Jul 2022 at 18:12:18
    Re: Get Items Filter Query off of People Picker field

    @NathanFra 

    The static email address was just to show you the syntax - you can use the SharePoint column reference assuming the you select column name followed by email from dynamic properties.

    You screen shot shows that you forgot the single quotes around the email address.

    image.png

     

     

     

  • NathanFra Profile Picture
    167 on 15 Jul 2022 at 18:03:04
    Re: Get Items Filter Query off of People Picker field

    @ScottShearer 

    Thank you for the reply. I tried the following, but my flow still failed at the Get Items stage. I'm not able to enter a static email address in, as the email address changes per user submitting on their time sheet.

     

    NathanFra_0-1657908031306.pngNathanFra_1-1657908075378.png

     

  • ScottShearer Profile Picture
    25,223 Most Valuable Professional on 15 Jul 2022 at 17:55:03
    Re: Get Items Filter Query off of People Picker field

    @NathanFra 

    This blog post will explain how to filter on a person or group column.

    The short answer is that your filter need to look something like this:

    Submitter/EMail eq 'jimg@abc.com'

    Note the following:

    • There must be single quotes around the email address
    • You need to use the internal name (which may not be the same as the display name) of your column
    • Case is important - use EMail not email

     

     

     

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Automate - Building Flows

#1
David_MA Profile Picture

David_MA 212 Super User 2025 Season 1

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 208 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 182

Overall leaderboard
Loading started