Good day. I am developing a PowerApp that requires two Sharepoint Lists. The functionality is simple really to be able to add data to the two Sharepoint Lists but using different screens as the two Sharepoint Lists are related by a common field. Any assistance is appreciated. Thanks.
Solved! Go to Solution.
Go to the 'Data" menu on the left-navigation menu. Search for SharePoint. Then click on the SharePoint site and lists you want to connect to.
---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
@shivapersad
Hello there. I'll give a basic example of how to build a 2 screen app. Create these two tables as SharePoint lists and connect them to your app. All columns are either text or number. No lookups are used.
Customers Table (SP List)
ID | Customer |
1 | Central Oil |
2 | Midwest Gas |
3 | Eastern Crude |
Invoices Table (SP List)
ID | CustomerID | Amount |
1 | 2 | 500 |
2 | 3 | 1000 |
3 | 1 | 50 |
4 | 1 | 250 |
5 | 3 | 600 |
6 | 2 | 800 |
The app will show a list of customers on the 1st screen and a list of customer sales on the 2nd screen filtered by a specific customer that was clicked on.
Create a vertical gallery on the 1st screen. Use this code in the Items property of the gallery
Customers
Then use this code in the OnSelect property on the gallery
Set(varCustomerID, ThisItem.ID);
Navigate(Screen2);
Now create a 2nd screen. Place a gallery on the 2nd screen with this code in the Items property.
Filter(Invoices, CustomerID=varCustomer)
That's how you can create a 2 screen app using 2 SharePoint lists.
---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
Hi @mdevaney. Thanks for the response. How do you connect the two Sharepoint Lists to the PowerApp?
Go to the 'Data" menu on the left-navigation menu. Search for SharePoint. Then click on the SharePoint site and lists you want to connect to.
---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
Great! This worked! It really wasn't as straightforward as before. Thanks for your assistance @mdevaney. I've marked your response as the solution.
You might have just made my whole month lol One question - can I carry that on to a 3rd? Right now my Client to their Job Sites is working wonderfully so can I now link the 3rd to it? The Job Site Equipment? Thanks!