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 / Bind a table (database...
Power Apps
Answered

Bind a table (database) by item id

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have one table where all the elements are related by their number. That is, each office, user, and employee Department has a number. Everyone has an id. I can 't change the table itself!!! Whether I can link all elements in power apps by id to a single collection. So that the user logs in and sees the data intended for their Department.

 

 

Аннотация 2020-03-06 164122.png
Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    156,425 Most Valuable Professional on at

    Hi @Anonymous ,

    You can certainly restrict this in a number of ways.

    There are many other possibilities including adding have a control list with the user's email and their department - I will call it RefList and the fields RefDept and UserEmail in the example below. A gallery Items property would be

    Filter(
     YourDataSourceName,
     Lookup(
     RefList,
     UserEmail = User().Email
     ).RefDept = Department
    )

    Also if you want to only display the records created by the logged-in user, you can have a gallery with the Items property

    Filter(
     YourDataSourceName,
     'Created By'.DisplayName = User().FullName
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Verified answer
    eka24 Profile Picture
    20,925 on at
    Hi @Anonymous, To be able to filter based on a user, you should have a column that has email or FullName. Then you can:
    Filter(
    DataSourceName,UserEmailColumn=
    User().Email)
    With this the user would see records of only his department

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
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 177

Last 30 days Overall leaderboard