Showing results for 
Search instead for 
Did you mean: 
Level: Powered On

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


Helpful resources


Watch Sessions On Demand!

Continue your learning in our online communities.


Follow PowerApps on Twitter

Stay Up-to-Date by following PowerApps on Twitter

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020


Power Platform World Tour

Coming to a city near you


PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!


Join PowerApps User Group!!

Connect, share, and learn with your peers year-round


Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

Users Online
Currently online: 55 members 4,241 guests
Please welcome our newest community members: