cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
darrenfloyd666 Post Patron
Post Patron

Updating a secondary list with the values from a primary list

I've got List A and List B. 

 

When an item is List A I want Flow to copy the item to List B. I'm adding some additional fields which will be mandatory for the next stage.

 

I'm using a Get Items action to get the values from List A, then I have an Apply to each loop with value as the output. This is followed by a Update item action which I'm pointing at List B and using the values returned from the Get Items action to update the fields. 

 

This is part of a larger flow (should I create it as it's own separate Flow?). I'm checking the results from  the Update item action and it seems to be showing the item values in the Id and Body fields but on the output I'm getting a 404. I've haven't recreated all the fields from List A to list B yet as I wanted to run a proof of concept test.

 

Any ideas where I'm going wrong?

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Updating a secondary list with the values from a primary list

Hi @darrenfloyd666 

 

Most likely your List B identifier is wrong hence you getting 404 record not found. The unique identifiers are system generated when you create a record in SharePoint. So to get the List B identifier you need to use List items filter query using List A values. I hope there are some unique column values in each records in List B. Say for example Name or Title is unique then you could use the filter as name to find the id of each list record from B.

 

If you need any further help in this please let me know.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog

View solution in original post

3 REPLIES 3
Super User
Super User

Re: Updating a secondary list with the values from a primary list

Hi @darrenfloyd666 

 

Most likely your List B identifier is wrong hence you getting 404 record not found. The unique identifiers are system generated when you create a record in SharePoint. So to get the List B identifier you need to use List items filter query using List A values. I hope there are some unique column values in each records in List B. Say for example Name or Title is unique then you could use the filter as name to find the id of each list record from B.

 

If you need any further help in this please let me know.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog

View solution in original post

Super User
Super User

Re: Updating a secondary list with the values from a primary list

Hi @darrenfloyd666 

 

Do you want any further help in this? If you have found a solution please accept it as solution accepted.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
darrenfloyd666 Post Patron
Post Patron

Re: Updating a secondary list with the values from a primary list

Thanks @abm you've been great! haven't tested it out yet. I'll mark this as a solution and tag you in another post if I have any further questions. Thanks! 

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Users online (6,876)