cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Bergur
Frequent Visitor

Updateing total price when new item inserted.

Hello,

 

I have something that works pretty much as an order system. I have an order list a, and a orderline child list b.

In order list i have total price, an in orderline i have price.

 

I cant really figure out how to update total cost in list a when i'am adding new orderline item. I update orderline with a simple flow.

 

Any clues?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Dual Super User
Dual Super User

Re: Updateing total price when new item inserted.

Hi @Bergur 

 

1. Order List A -> is the total price

2. OrderLine List B (Child) -> is price. 

 

Do you have a lookup from 2 to 1 or any such relation that can identify the items in both lists with a unique identifier? 

 

If so, what you can do is, use the trigger, When an item is created/ updated in the OrderLine list and the action would be to get the item from list 1 based on the list 2 identifier and then add an update item action for list 1 and increment/add the values from the when an item is created trigger and the get item action to update the total cost. Makes sense? 

 

Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

1 REPLY 1
Highlighted
Dual Super User
Dual Super User

Re: Updateing total price when new item inserted.

Hi @Bergur 

 

1. Order List A -> is the total price

2. OrderLine List B (Child) -> is price. 

 

Do you have a lookup from 2 to 1 or any such relation that can identify the items in both lists with a unique identifier? 

 

If so, what you can do is, use the trigger, When an item is created/ updated in the OrderLine list and the action would be to get the item from list 1 based on the list 2 identifier and then add an update item action for list 1 and increment/add the values from the when an item is created trigger and the get item action to update the total cost. Makes sense? 

 

Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

Helpful resources

Announcements
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 (7,332)