cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
LiamR89
Helper I
Helper I

Adding line item values from one list to a value in another - array?

Hi all, I've been getting used to working with Automate and Power Apps and have a basic app now for purchase order approvals.

Only issue I have is with getting the total of all line item values in one list with a certain Title to be added up and then this value used in update item to the other list.

I've spent some time looking online and tried a few different ways but I can't get any working successfully.

Could somebody please point me in the right direction?

 

Shots below of the two lists with some sample data - (you'll see on the PurchaseOrder list there are values for total value, these are acquired using patch function within PowerApps but I need the data at an earlier point)

LineItemsList.pngPOList.pngThank you

1 REPLY 1
alrez
Community Support
Community Support

Hi,

 

You are simply trying to get a row total from one list and update another SharePoint item in another list with that total correct? You should be able to just "get items" from a list and increment a variable with whatever is in the total column. From there you just need to update the item in the 2nd list with the total in your variable. If you are still having issue this might be a better question for Microsoft Support. I'll include a link on creating cases with them if you would like to go down that route.

 

If you would like to create a ticket with Microsoft Customer Support here is a link on how to do so: https://docs.microsoft.com/en-us/power-platform/admin/get-help-support

 

Regards,

 

Alex

 

-------

 

Community Support Team _ Alex Rezac
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power automate tips 768x460 v2.png

Restore a Deleted Flow

Did you know that you could restore a deleted flow? Check out this helpful article.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Users online (2,399)