Showing results for 
Search instead for 
Did you mean: 
Helper I
Helper I

Bug with .Selected on datatable but only the first time the app loads


ClearCollect(LocalSharePointList, SharePointOnlineList)


Screen 1 has a datatable with one of the columns set as a hyperlink. 

DataTable1.Items = LocalSharePointList

Column1.OnSelect = Set(SelectedRecord, Lookup(LocalSharePointList, ID=DataTable1.Selected.ID))


Screen 2

Form1.Datasource = SharePointOnlineList

Form1.Item = SelectedRecord


When the app first loads, this does not work. Regardless of what record hyperlink is clicked in the datatable, the first record is always retrieved and displayed in the form. Navigating back to the datatable and selecting subsequent records works as expected.


I think this is a bug whereby the first time the app loads, Datatable.Selected.ID will always be the first record in the collection regardless of the record that was selected. I am aware that the first record will be the default selected, but selecting a different record should change the value of Selected.ID


Regular Visitor

We've run into the exact same issue. Any workarounds or fixes available?

New Member

Hi @peteaxtell , @user11,


Did you find the solution to this issue? Same happening to me and I am unable to fix.

Helpful resources

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.


Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (3,971)