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 / Using a search bar to ...
Power Apps
Suggested Answer

Using a search bar to search in a gallery on a lookup value in sharepoint

(1) ShareShare
ReportReport
Posted on by 2
I have a page in my app that has a search bar to search in a gallery on the same page. I want to be able to search on a specific field used in the sharepoint thats used on the gallery. The field that i want to search on is called 
Leerlingschildernaam. This field in sharepoint is a lookup field that selects a name from a different sharepoint list. This means that the usual 
(Search(Beoordelingen; zoeken.Text; Leerlingschildernaam) doesnt work (neither does .text or .value behind Leerlingschildernaam). How can i make this colom searchable?
Categories:
I have the same question (0)
  • Suggested answer
    abc 123 Profile Picture
    784 Moderator on at
    I never use a List for a Gallery. Always a collection, mainly for sorting. (Especially when a Lookup or Person/Group column is in the list.)
     
    ClearCollect(colDataFromList, 'List Name', {criteria as needed});
    ClearCollect(colDataFromListWithSortFields,
         colDataFromList, 
         AddColumns(
            PersonNameSort: Person.DisplayName,  //Extract Displayname from the Person Record
            SiteSort: Site.Value,                                  //Extract Site text value
            CategorySort: Category.Value                 //Extract Category text value
            "CanEdit": "No",                                       //Make flags in the row for things like dynamic rendering of controls
            "IsEdited": "No"                                       //    or knowing if the record was changed.
         )
    );
     
    I'm sure there's some way to do this in a single step, but this way makes it easier to debug.

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 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard