Showing results for 
Search instead for 
Did you mean: 
Level: Power Up

Updating a parent with counts and / or sums from children

Hello all, 


I'm creating my first flow and apparently am in over my head.


I wish to create a flow based on a update trigger of a parent (in this case the parent is the Work Orders entity of Dynamics 365 Field Service Automation), and count the number of children and / or summarize data from the children (in this case the PSA entity Work Order Products). 


I can fire the flow based on an update of the Work Order Parent, but have trouble figuring out what goes next.. I need to retreive and act on each child -- not sure if I need to use Get Items or List items , and how to filter the retrieval so I'm only dealing with the rows "owned" buy the parent.


I'd appreciate any assistance you can offer.


Dual Super User
Dual Super User

Re: Updating a parent with counts and / or sums from children

Hey! Please have a look at the flow screenshot below: 


You can get the multiple records using the List Records action and get the related ones using the "Work Order Number" Attribute. 


P.S. msdyn_workorder is a field in the Work Order Product entity in my environement. Please make changes according to your environment attributes/ metadata. 


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


New Ranks and Rank Icons in April

Read the announcement for more information!


Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.


New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!


Power Automate Community User Group Member Badge

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


Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (3,915)