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

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
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (2,419)