cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PowerAppStudent
Level: Power Up

Multiple Sharepoint Lists in single Application

Hello,

 

I'm currently working on a PowerApps that will allow me to add, edit, and delete different elements within a Sharepoint List. The issue that I'm having is that I don't know how to connect several Sharepoint Lists into a single application. Here is the layout of my situation.

 

Sharepoint List 1: Departments

Sharepoint List 2: Critical Processes

 

So how my application wants to work is that the user will be able to select which department that they will be modifying information in, ie. Accounting. Within that DetailForm, I want there to be another button that navigates to Accounting's Critical Processes, which would be a different Sharepoint list. Within that Sharepoint list (Critical Processes) I have another column for "Departments" that would link it together. Similiar to how a database uses Primary/foreign keys. Within the Gallery view, I want to filter out all the other critical processes from the other departments, and only show the critical processes for the Accounting department.

 

Additionally, the user should have the ability to add more critical processes within that Gallery, and I want the Department field within Critical Processes to be autofilled with the previous selection in the Departments list. I also want the Text Box in the middle to show the Department that was previously chosen. 

 

I'm a little new to PowerApps, but I do know how to code. I'm just still learning PowerApps and I couldn't find any solution for what I was looking for.

 

If you have any questions that I could give insight on please ask!

2 REPLIES 2
Super User
Super User

Re: Multiple Sharepoint Lists in single Application

In general the answer to your question of how to access multiple SharePoint lists is to have two connections.  One for each list.  The only thing I would do differently would be to direct users to a differnt form when they want to add a new critical process.  Then when they save that new form they would navigate back to the gallery and it would refresh to show the new record. I've never tried adding a new record through the gallery and i'm not sure its even possible.

 

 



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Community Support Team
Community Support Team

Re: Multiple Sharepoint Lists in single Application

Hi @PowerAppStudent ,

Could you please share a bit more about your scenario?

Do you want to navigate to corresponding Critical Processes when you click the "Critical Processes" button within your DetailScreen1?

 

Based on the needs that you mentioned, I think PowerApps could achieve your needs. Within your app, you could create additional screens for your Critical Processes SP list -- BrowseScreen2, DetailScreen2 and EditScreen2.

You could directly copy the BrowseScreen1 within the Left Tree View part via click "Duplicate screen" option, and rename it as "BrowseScreen2". Same operations for DetailScreen2 and EditScreen2. Please check the following GIF screenshot for more details:Test.gif

 

 

Then within the DetailScreen1, set the OnSelect property of the "Critical Processes" button to following formula:

Set(CurrentDepart, BrowseGallery1.Selected.Department);
Navigate(BrowseScreen2, ScreenTransition.None)

Within your BrowseScreen2, set the Items property of the BrowseGallery2 to following:

SortByColumns(
Filter('Critical Processes', Department = CurrentDepart, StartsWith(Title, TextSearchBox1.Text)),
"Title",
If(SortDescending1, Descending, Ascending)
)

then bind your DisplayForm2 (in DetailScreen2) and EditForm2 (in EditScreen2) to your BrowseGallery2.

 

Please check and see if the following video would help in your scenario:

https://www.youtube.com/watch?v=6P00_UwTc6w

 

Please take a try with above solution, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Users Online
Currently online: 227 members 4,565 guests
Please welcome our newest community members: