cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Super User II
Super User II

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)

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)
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
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.

secondImage

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 (5,771)