How to connect info from 2 SharePoint lists?

de Souza, Andre Luiz 1 Reputation point
2020-07-29T11:06:09.343+00:00

Hi everyone!

I'm working with 2 SharePoint Lists, one of them is filled by a MS Forms, and the other one, has complementary info. The info I'm working with is a 1:1 relation.

Is there a way to relate automatically information between 2 Lists, just like a VLOOKUP in Excel?

I found a manual way to do that, by selecting "Lookup" on the Create Column options. The problem is, this form will get about 50 answers by day.

For example:

List 1:

Name of employee: "Filled by Forms"

Register Number: "get automatically from List 2"

Date of birth: "get automatically from List 2"

List 2:

Name of employee: database

Register Number: database

Date of birth: database

Thanks in advance!

Microsoft 365 and Office | SharePoint | For business | Windows
{count} votes

1 answer

Sort by: Most helpful
  1. JoyZ 18,111 Reputation points
    2020-07-30T08:35:34.807+00:00

    From your description, you want to automatically update columns of list 1 with the values ​​in list 2.

    We could use flow to meet your requirement, please check following steps:

    Step 1: I create list 1 with Employee Name(Single line of text),Register Number(Single line of text), Date of birth(Date and time).

    14562-image.png

    Step 2: Then create list 2 with Name of employee(Single line of text),Register Number(Single line of text), Date of birth(Date and time) and fill in the fields.

    14498-image.png

    Step 3: Create a flow with template "When a new item is added in SharePoint, complete a custom action".
    14582-image.png

    Step 4: Get values in list 2 and filter the value when Employee Name is equal to Name of employee.
    14525-730-1.jpg

    Step 5: Update the Register Number, Date of birth of the specified user in List 1 with the expression "item()?['RegisterNumber']" and "item()?['Dateofbirth']".

    14591-730-2.jpg

    Step 6: Test and save the flow, create a new item in list 1, wait for a while for the flow to work.

    14584-test.gif

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.