cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Islandspapand
New Member

Mutiple Sharepoint lists

So i have a SharePoint site that contains many lists that are named after users.

Is it possible to connect to the given list deepening on which user is using the app

So if John uses the app then it connect to Johns list, If Jane uses the app then it connect to Janes list.

i would like just to have one screen with a gallery to display the data

 

4 REPLIES 4
PowerAddict
Super User
Super User

Unfortunately, I dont think thats possible currently. You can dynamically reduce your gallery's items as long as the data source is defined. In other words, you can have something like this: If(Condition1, Users, Filter(Users, Condition2))

 

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

Hardit(Haman)

datamaster
Resolver II
Resolver II

@Islandspapand  as @PowerAddict mentioned you cannot create the data connections dynamically. However, you can accomplish what you are looking for by first creating the connections to each users list and then in the gallery's items property do something like this. Switch(User, "John", JohnsList,"Joe",JoesList, "ETC",ETClist)

 

 

------------------------------------------------------------------------------OfficePowerUser.com------------------------------------------------------------------------
If this post helps answer your question, please click on
“Accept as Solution” to help other members. If you thought this post was helpful, please give it a Thumbs Up.

@datamaster just to add to that, the columns in the lists need to the same. Else the gallery controls will keep throwing errors.

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

Hardit(Haman)
v-siky-msft
Community Support
Community Support

Hi @Islandspapand ,

 

 If the Fields you want to display in the gallery are the same, you can set Items property of Gallery as below:

 

  Switch(User().Email, "User1@xxx.com" ,User1LIst,"User2@xxx.com",'User2List',...)

 

Then the Gallery will show the corresponding user's list.

If the Fields is different, I am afraid it is not supported in PowerApps currently, because the Fields of gallery are constant, they can not be modified by expression.

Best regards,

Sik

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Top Kudoed Authors
Users online (1,537)