I have a Sharepoint data source with Name, address, email and car reg details.
I want to be able to display this datasource in a table / gallery / view form - but only data relating to the signed in user - i've tried this code
Filter(HENG_VehicleInformation,'E-Mail' = (User().Email))
but i am getting delegation errors - presumably because my 'Users' table has more than 2000 users? The datasource only currently has 2 records - but the potential to have 100's.
Solved! Go to Solution.
Save the Current user's email to a variable in the OnStart property for the App. Then filter on that variable. The delegation issue will go away.
Set(CurrentEmail, user().Email) Filter(DataSource, 'E-Mail'=CurrentEmail)
Save the Current user's email to a variable in the OnStart property for the App. Then filter on that variable. The delegation issue will go away.
Set(CurrentEmail, user().Email) Filter(DataSource, 'E-Mail'=CurrentEmail)
Many thanks for your help, the delegation error has vanished!
Need to know how to display the fields I need from the datasource, but i'll fathom it out, cheers.
Just add the filter statement to the Items property for the Gallery. THen you can edit the fields to display the fields you want.
Check out new user group experience and if you are a leader please create your group
Did you miss the call?? Check out the Power Apps Community Call here!
See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.
User | Count |
---|---|
258 | |
251 | |
84 | |
36 | |
32 |
User | Count |
---|---|
339 | |
264 | |
123 | |
73 | |
46 |