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 Apps / Converting People Pick...
Power Apps
Unanswered

Converting People Picker to Text field

(0) ShareShare
ReportReport
Posted on by 183

I have a form that a requester will fill out. Towards the end they need to choose from a People/Group picker for their approver. 

 

Once the requester submits the form, it goes off to the Approver to Approve/Deny based on an email they receive that will provide a link to a new screen within the APP for approvals. This new screen is setup with a Gallery so they can see all approvals that were assigned to them. 

 

From what I've found, it isn't possible to set a Gallery to Filter or LookUp based on a People column from SP. So I want to have a hidden field on the requester's screen that then they select their Approver, it will auto fill a text field. This will allow me to filter in the Gallery.

 

Thoughts?

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    Person/Group columns are complex objects, so you can't use the column by itself to filter.  But you can filter using the properties of the person/group column.  For example, email or display name.  You have to specify the property though.

  • NathanFra Profile Picture
    183 on at

    @Pstork1 ,

     

    I tried adding the .DisplayName, but seems like something isn't happy still.

     

    The datacard with the people picker:

     

    NathanFra_0-1605887329072.png

     

    Here is the Items for the Gallery:

    NathanFra_1-1605887421447.png

     

    Thank you!

  • Verified answer
    Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    Your code is trying to match the DisplayName for the current user against the full Approver column.  You should do two things.

    1. Save the current user DisplayName in a variable using the following.  This is to prevent delegation warnings.
      Set(CurrentUserName, User().DisplayName)
    2. Change your code to the following
      Filter('Travel Pre-Authorization',Approver.DisplayName = CurrentUserName)
  • Jasper762 Profile Picture
    2 on at

    This solution doesn't work for my situation which is a replication of the above solution.

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard