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 / Lookup items as a repl...
Power Apps
Unanswered

Lookup items as a replacement for gallery.selected

(0) ShareShare
ReportReport
Posted on by 24

Hi,

 

What i'm trying to achieve is I want to get the latest record modified from sharepoint. I will need to email that the details from that record. I tried using getting it from gallery and it usually takes time to get the update and I need it ASAP.   Can I replace the tlOpenLastM.Selected to a lookup?

 

Also, this is my item gallery:

First(SortByColumns(Filter(CollectAlert,_LeaderEmail = User().Email And CoachingStatus_ = "Open"), "Modified" ,Descending))

 

I need to apply this filtering for each item I need to send in the email.

 

josefm2_0-1634922559992.png

 

Categories:
  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @josefm2 

     

    In general, we should avoid referencing other screens.

     

    Set OnSelect property of the gallery to

    Set(SelectedRecord, ThisItem); Navigate(Screen1, ScreenTransition.None)

     

    On the other screen (Reference the variable instead of Gallery)

    Application ID : SelectedRecord._AppID

     
    Thanks,
    Stalin - Learn To Illuminate

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @josefm2 ,

     

    I am more curious of why it would take time to get the update. Basically Galleries will show the results immediately when data source is updated. So could you please share more details about your scenario? How do you update the data source? In your codes there is "CollectAlert", is it a collection? 

     

    The thing is using too many LookUp in a single formula may cause performance issue. I would prefer to create a new collection to include this single record, use it in the html codes.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 409 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard