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 / How to Filter Query Pe...
Power Automate
Unanswered

How to Filter Query Person or Group column

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi! 
Im building my Power Virtual Agent for my company and i have a question: how can i filter query the Employee Column (which is Person or Group type) using Sharepoint list. 
My PVA is on russian language and i want to make bot answer back to user based on user´s gender.

So basically equivalent to english is for example: if a user is female then bot says - Hello, Mrs. X and Hello, Mrs. X if a user is male). I have a column that represent it (Gender - is a Select Column) and i see the logic of PVA like this:

if user is a female person:
1) based on bot.UserdisplayName inside PVA (on english - for example Luisa Simmons) i bring it to Power Automate flow as UserName input (=UserdisplayName)
2) then Get items from Sharepointlist with a filter Query Employee column (which is "Person or Group" column type and where email and Name,Surname on english are stored) so that Employee eq 'Username' 

3) at this point flow should filter the line of Employee Luisa Simmons and from that line extract Gender Value that equals "Female"

4) to do that i would do Get item action to extract in condition: Gender is equal Female 
6) If yes return to PVA Mrs. bot.UserdisplayName if no Hello, Mr. bot.UserdisplayName

So my problem is: how can i make bot.UserdisplayName = Username (as Input from PVA) = Employee (Person or Group column) 

and then extract data about Gender (Choice column type) and give it back to bot. I have tried this: Employee eq 'Username' but this coulndt do anything.

Untitled.png

 

Categories:

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

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 424

#2
11manish Profile Picture

11manish 328 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard