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 / Is it possible to capt...
Power Apps
Unanswered

Is it possible to capture the most recently loaded gallery item?

(0) ShareShare
ReportReport
Posted on by 54

I have a gallery of items and would like to capture the ID of a record when a user reaches the display limit in a gallery and scrolls to load more as a means of knowing a user’s “location” in the content. Is it possible to capture this event?

Categories:
  • eka24 Profile Picture
    20,925 on at

    I believe you can do that using a variable;

    Set(varLoadedRecord, Gallery1.Selected)

    Or 

    Set(varLoadedRecord, Gallery1.Selected.Location)

     

    You can give further information.

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi@dehmos27,

     

    Based on the issue you mentioned, you want to capture the user’s selected item when reaching the display limit.

     

    As we know, PowerApps gallery loads the first 100 rows, then, as you scroll to the bottom of the list it will trigger the gallery to get the next 100. This will repeat (another 100 rows each time you get to the bottom of the list).

     

    If you want to save the record in the bottom when the gallery appears “load more”, which can not be achieved currently.

     

    If you would like this feature to be improved within PowerApps, please submit an idea to PowerApps Ideas Forum:

    https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

     

    As an alternative solution, you can try as the following:

     

    Set the Gallery OnSelect property: UpdateContext({myGalID: ThisItem.Title})

    Set the Gallery Default property: Last(Filter(DataSource, Title = myGalID))

     

    You will see the Title from “Variables”.

     

    Best Regards,

    Qi Qiao

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

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard