Updating a list from columns in another list based on selected lookup value.

%3CLINGO-SUB%20id%3D%22lingo-sub-1734925%22%20slang%3D%22en-US%22%3EUpdating%20a%20list%20from%20columns%20in%20another%20list%20based%20on%20selected%20lookup%20value.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1734925%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20lookup%20list%20(list%20A)%20that%20has%20unique%20values%20for%20Test%20column.%20List%20B%20has%20a%20(requires%20data)%20lookup%20column%20to%20list%20A%20Test%20column.%20When%20an%20item%20is%20created%20or%20modified%20in%20list%20B%20I%20need%20to%20get%20two%20column%20values%20from%20list%20A%20for%20the%20record%20of%20the%20selected%20Test.%20One%20column%20is%20a%20multi-lines%20of%20text%20column%20and%20the%20other%20is%20a%20link%20column.%20I've%20gotten%20to%20the%20get%20items%20(from%20list%20A)%20but%20need%20help%20updating%20the%20list%20B%20item%20with%20the%20values.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1734925%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EPowerApps%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1743774%22%20slang%3D%22de-DE%22%3ESubject%3A%20Updating%20a%20list%20from%20columns%20in%20another%20list%20based%20on%20selected%20lookup%20value.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1743774%22%20slang%3D%22de-DE%22%3E%3CP%3EHello%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F816505%22%20target%3D%22_blank%22%3E%40DEnderle%3C%2FA%3E%2C%20can%20you%20specify%20where%20on%20which%20form%20(screenshot%20will%20be%20helpful)%20you%20need%20help%3FGreets%2C%20Eva%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

I have a lookup list (list A) that has unique values for Test column. List B has a (requires data) lookup column to list A Test column. When an item is created or modified in list B I need to get two column values from list A for the record of the selected Test. One column is a multi-lines of text column and the other is a link column. I've gotten to the get items (from list A) but need help updating the list B item with the values.

3 Replies
Highlighted

Hello @DEnderle, can you specify where on which Form (screenshot will be helpful) you need help?Greets, Eva

Highlighted

@Eva Vogel 

Below are screen shots of the two SharePoint on line lists. When an item is created/updated in Test Cases, I need the power automate to look at the test name (from the test lookup column), get data from the cooresponding record in Tests and populate Test Cases.Instructions column with Tests.Instructions data and Test Cases.Specific Site column with Tests.Specific Site data. 

 

testCases.pngtests.png

Please let me know if you need further clarification. Thank you in advance for looking at this - I appreciate it!

 

Highlighted

Hello @DEnderle, thanks for your screenshot.

1) The Flow needs the ID (integer value, not a text value) to specify the right record.

 

2) And within the right ID Row of the SharePoint (Main) List your Flow can look after (LookUp) the detail data within the (Detail) List.

 

3) It is called 1:n Relationship. Your Detail List has a Number= integer Value = ID and thank God every SharePoint List has automatically an ID.

 

4) So your LookUp Field in the main list should not contain a text value, but you should additionally build a lookup=foreign Key on this detail ID = primary Key, not with a text field like you did.

 

5) I know, Relationship modelling is a hard one to learn, but thus your flow can identify all details within the second (detail) list.

 

attached you can find screenshot on my Projectlist, witch has a LookUp Column to a Customer List (Kundenliste). Project List is Main List and contains a foreign Key (Kunde Id) to the Details List of the Customers. Dont worry, they are not real. It is my training courses site. Alternative facts ;))

 

Last but not least I created a Flow for you, which you can find as a PDF. If you need further help: I give coaching on Power Automate and help my (real) Customers to build new Flows within SharePoint and other Resources. Just mail me on info@evotrain.de