Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Lookup items as a replacement for gallery.selected



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.




Community Champion
Community Champion

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

Stalin - Learn To Illuminate

Community Support
Community Support

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.

Helpful resources

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,678)