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 / 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:
I have the same question (0)
  • 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
    11,695 Super User 2025 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

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 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard