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

Linking two lists from sharepoint

This is a best practices question. 

There appear to be two different ways to link two lists in SharePoint so they can be used in PA.

For a simple example with two lists:

List 1 is "classes" Columns: Title, Professor

Examples: History 101, Science 202

 

List 2: "Professors" Columns: ID, Name

Examples: 1, Smith and 2, Brown

 

What is the best to use for the Professor column in List1-Classes

Daniel Christian (5) Power Apps: Planning SharePoint Lists Relationships - YouTube 

Daniel recommends you use a number column and put the ID in that column. In fact, he would name it ProfessorID

The other option is to make it a lookup column.

 

The side effect is that the column would then contain an object the could have both the professor ID and name. The downside is that patching is somewhat trickier. I have not tried patching a lookup object, but I've been told it can be done.  From a PA point of view, I suspect either would work, and from the SP list point of view, you can see the professor's name.

 

The next issue is if you want to link to a student's table. There is only one professor per class, so it is pretty easy. There could be fifty students per class, and lookup would possibly work too, but even in SharePoint, it would look awkward.

 

What do you folks recommend and why?

 

 

 

 

 

 

 

 

2 REPLIES 2
WarrenBelz
Super User III
Super User III

Hi @davidm203 ,

Take option 1 (link on a field). It does not have to be ID, as long as it is in both list and matches. LookUp columns are a bad idea to link to Power Apps unless you cannot avoid them with your required structure. I have a blog relating to field types if it interests you.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

 

 

davidm203
New Member

Thanks that is very useful. Your blog is great.

 

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

Top Solution Authors
Top Kudoed Authors
Users online (89,937)