Showing results for 
Search instead for 
Did you mean: 
Regular Visitor

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

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


Super User Program Update

Three Super User rank tiers have been launched!


Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021


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!

Top Solution Authors
Top Kudoed Authors
Users online (6,012)