{"id":10,"date":"2008-12-23T21:00:41","date_gmt":"2008-12-23T21:00:41","guid":{"rendered":"\/blogs\/benbarefield\/archive\/2008\/12\/23\/cross-list-references.aspx"},"modified":"2008-12-23T21:00:41","modified_gmt":"2008-12-23T21:00:41","slug":"cross-list-references","status":"publish","type":"post","link":"https:\/\/www.benbarefield.com\/blog\/2008\/12\/23\/cross-list-references\/","title":{"rendered":"Cross-List References"},"content":{"rendered":"<p>There are situations where it is useful to link data in one list to another list.&nbsp; For example, if you have a list of projects and a list of tasks.&nbsp; Some of the tasks are going to be associated with a project.&nbsp; You can easily create a reference to the project list from items in the task list.<\/p>\n<p>I&#8217;m going to assume you have your two lists created; for this example I used two custom lists, but that isn&#8217;t necessary.&nbsp; On your list you want have a reference (the task list in my example) you need to add a lookup column:<br \/><a href=\"http:\/\/srtsolutions.com\/cfs-file.ashx\/__key\/CommunityServer.Blogs.Components.WeblogFiles\/benbarefield\/colSettings_5F00_4.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px\" height=\"507\" alt=\"colSettings\" src=\"http:\/\/srtsolutions.com\/cfs-file.ashx\/__key\/CommunityServer.Blogs.Components.WeblogFiles\/benbarefield\/colSettings_5F00_thumb_5F00_1.jpg\" width=\"267\" align=\"left\" border=\"0\"><\/a><\/p>\n<p>First you need to go to the settings for the list that you want to reference the other list.&nbsp; In my example this is the tasks list<\/p>\n<p>Next you need to create the new column in the list.<\/p>\n<p>This new column needs to be a Lookup column.&nbsp; This will allow you to select your other List in the &#8220;Get information from:&#8221; box.&nbsp; You can see I have selected the ProjTest list I created for this example.&nbsp;&nbsp; You also need to specify which column in the list that you want to key on.<\/p>\n<p>This is the only way so far that I have found to reference one list from another list.&nbsp; One work around is to add a single line of text column and have the user input a link to the list view that you want.&nbsp; I would like a way to reference another list or list view without user input.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are situations where it is useful to link data in one list to another list.&nbsp; For example, if you have a list of projects and a list of tasks.&nbsp; Some of the tasks are going to be associated with &hellip; <a href=\"https:\/\/www.benbarefield.com\/blog\/2008\/12\/23\/cross-list-references\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"class_list":["post-10","post","type-post","status-publish","format-standard","hentry","category-sharepoint"],"_links":{"self":[{"href":"https:\/\/www.benbarefield.com\/blog\/wp-json\/wp\/v2\/posts\/10","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.benbarefield.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.benbarefield.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.benbarefield.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.benbarefield.com\/blog\/wp-json\/wp\/v2\/comments?post=10"}],"version-history":[{"count":0,"href":"https:\/\/www.benbarefield.com\/blog\/wp-json\/wp\/v2\/posts\/10\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.benbarefield.com\/blog\/wp-json\/wp\/v2\/media?parent=10"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.benbarefield.com\/blog\/wp-json\/wp\/v2\/categories?post=10"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.benbarefield.com\/blog\/wp-json\/wp\/v2\/tags?post=10"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}