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 Apps / Customizing the defaul...
Power Apps
Answered

Customizing the default BrowseGallery code

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

My plan is to filter every record from a sharepoint list by user. Each record(row) has it's own owner. So when the app loads, I would like for it to only show the records owned by the person currently logged in.

 

I have set a variable for this >> Set(glbFullName, User().FullName)

 

Now the default browser gallery is >> SortByColumns(Filter([@dashLatest], StartsWith(Title, TextSearchBox1.Text)), "Title", If(SortDescending1, Descending, Ascending)) so i decided to make into:

 

SortByColumns(Filter([@dashLatest], (Owner = glbFullName) || StartsWith(Title, TextSearchBox1.Text)), "Title", If(SortDescending1, Descending, Ascending))

 

But nothing is happening. Can anyone help? My understanding is this line of code should filter the record by owner then it would still allow me to search the current results even further by looking up by title.

 

Thanks. 

Categories:
  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Anonymous 

    You need "&&" instead of "||" in your formula

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Man thanks! I am a bit rusty with my operators. lmao. But thank you so much it worked!

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 Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard