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

Community site session details

Session Id : EwXolm9W/ugFMIp4PS+R+4
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 174

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!

I have the same question (0)
  • ScottShearer Profile Picture
    25,240 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

     

     

     

  • NathanFra Profile Picture
    174 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

     

  • Verified answer
    ScottShearer Profile Picture
    25,240 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

     

     

     

  • 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 

  • 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!

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 655 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 371 Moderator

#3
chiaraalina Profile Picture

chiaraalina 276

Last 30 days Overall leaderboard
Loading complete