cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
LennartWalldén
Advocate II
Advocate II

Linking of Sharepoint lists

I have an app that is a project management system and I have been using one list to contain all the data. Now I am working on a new version where I split the data to different Sharepoint lists. I want to have a list called ProjectList as master containing ProjectID and ProjectName and some other base data.

 

In antoher list called ProjectParticipants, I will have names of the project participants. The second list is connected to the ProjectList via the ProjectID. But I also want to display the ProjectName in the second list. Which is the best way to get the ProjectName from the ProjectList. I want to keep it maintained if someone changes the name of the project. I know that I can write a rename function which takes care of the problem, but is there a smarter way to link the lists and get an automatic update?

1 ACCEPTED SOLUTION

Accepted Solutions
timl
Super User
Super User

@LennartWalldén 

You can call the LookUp function to retrieve the ProjectName in the second list.

Let's say you display ProjectParticipants in a gallery control. In the gallery, you can add a label and set the Text property to:

LookUp(ProjectList, ProjectID=ThisItem.ProjectID).ProjectName

View solution in original post

2 REPLIES 2
timl
Super User
Super User

@LennartWalldén 

You can call the LookUp function to retrieve the ProjectName in the second list.

Let's say you display ProjectParticipants in a gallery control. In the gallery, you can add a label and set the Text property to:

LookUp(ProjectList, ProjectID=ThisItem.ProjectID).ProjectName
LennartWalldén
Advocate II
Advocate II

Initially I looked for  a way to create a direct link between the Sharepoint lists, but now I think I go for your solution which is easier and more robust. Thanx!

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,263)