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

Update Sharepoint group sum value to another list

Hello. 

I need you help.

 

1. Sharepoint
List A 

customer order
A10
B20
A10

 

2. Sharepoint
List B 

customerordersum
A20
B20

 

and if order column change or add, ListB will be applied. 

(example) 
List A -change & add order

customerorder
A1
B
A1
B100

List B 

customerorder
A2
B102

 

could you help me... 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Update Sharepoint group sum value to another list

 

Hi @JHChoi81 ,

 

Please refer to the screenshot below to configure Flow.

  • You need to use customer to group items and accumulate the value of order.
  • First initialize the array variable to get all customers, and then append them to the array.
  • Then use the union() function to remove duplicates in the array, and then traverse the results.
  • Use Condition to filter out items with the same customer and add the order to a numeric variable.
  • Use Get items to get the items in list B, filter out the items with the same customer and update this item.
  • The digital variable needs to be cleared at the end of each loop to avoid repeated accumulation.

Image reference:

2.PNG3.PNG4.PNG5.PNG6.PNG

Please take a try and feel free to let us know if you have any questions about this method.

 

Best Regards,

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

View solution in original post

1 REPLY 1
Highlighted
Community Support
Community Support

Re: Update Sharepoint group sum value to another list

 

Hi @JHChoi81 ,

 

Please refer to the screenshot below to configure Flow.

  • You need to use customer to group items and accumulate the value of order.
  • First initialize the array variable to get all customers, and then append them to the array.
  • Then use the union() function to remove duplicates in the array, and then traverse the results.
  • Use Condition to filter out items with the same customer and add the order to a numeric variable.
  • Use Get items to get the items in list B, filter out the items with the same customer and update this item.
  • The digital variable needs to be cleared at the end of each loop to avoid repeated accumulation.

Image reference:

2.PNG3.PNG4.PNG5.PNG6.PNG

Please take a try and feel free to let us know if you have any questions about this method.

 

Best Regards,

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

View solution in original post

Helpful resources

Announcements
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.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Top Solution Authors
Top Kudoed Authors
Users online (7,791)