cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Bergur
Level: Powered On

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
Super User
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!

1 REPLY 1
Super User
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!

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 329 members 4,181 guests
Please welcome our newest community members: