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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / SharePoint get items f...
Power Automate
Suggested Answer

SharePoint get items filter by people field

(0) ShareShare
ReportReport
Posted on by 9
Trying to filter a filter returned results from a sharepoint list where multi select people field (Requestor) contains an email address contain in a variable.
 
 
 
 
 
 
Categories:
  • Suggested answer
    KT-11121621-0 Profile Picture
    14 on at
    Hi, N
     
    Could you provide more context what you're trying to accomplish with the expression?
     
    Because I don't think its substringof - its substring. 
     
    Are you trying to find an email within a string? 
    If you know that the string always occurs between the third and fourth comma in a string, you could use nthIndexOf function to find the start position of the third comma, which would be the start of the email address, and then nthIndexOf  again to find the position of the fourth comma to find the end of the string.  Then you can use those values in the slice function to extract the email.
     
    It would look something like this:
    slice(varRequestor, nthIndexOf(varRequestor, ' ', 3), nthIndexOf(varRequestor, ' ', 4))
    Essentially, this reads as 'slice the the var Requestor string starting at the third comma and ending at the fourth comma'.
     
    Here's a link to documentation:
     
    Good luck and let me know how it goes.
  • Ellis Karim Profile Picture
    12,277 Super User 2026 Season 2 on at
    Hi@
     
    I think you will need to use a filter array action after the Get Items action. The OData Filter Query in can’t filter on the person column.
     
    You could try:
     
     
    Ellis
    https://elliskarim.com
     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 132

Last 30 days Overall leaderboard