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 / Power app search funct...
Power Apps
Answered

Power app search function for recent SharePoint data

(0) ShareShare
ReportReport
Posted on by Microsoft Employee
 
SortByColumns(Search(AddColumns('TWT Production Output',"CrewMemberValue",CrewMember.Value),TextInput2.Text,"CrewMemberValue"),"Date",SortOrder.Descending).
 
This is my items formula for gallery. But employees can not search recent data by CrewmemberValue. because the app is taking first 2000 list items. So is there any formula to fetch latest 1000 items rather than items from beginning. Crewmember is a choice column in SharePoint. That is why I used 'AddColumns' property.
Categories:
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Anonymous 

    If you want to search the latest 2k items, sort your list by ID, Descending first, then search it.

     

    With({twt: Sort('TWT Production Output', ID, Descending)},
     Search(twt, textinput1.Text, "CrewMemberValue)
    )

     

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    You can fetch the first 1000 records from sharepoint list after sorting in descending order to a collection and then use collection as the source of gallery.

    You can use the function FirstN function fetch the first 1000 records. 

     

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi Thank you for your solution and search property is working fine. But if we click on the gallery item, it is not showing any data in 'EditForm'. I attached the screenshot below. I am confused about datasource and item property 

    twt1.PNG

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 360 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 325

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard