cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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 III
Dual Super User III

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 III
Dual Super User III

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (5,813)