cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kdenman
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.

 

1 REPLY 1
Highlighted
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. 

teetette.png

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!

 

Thanks, 

 

 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

New Ranks and Rank Icons in April

Read the announcement for more information!

firstImage

Better Together Contest Finalists Announced!

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

firstImage

New & Improved Power Automate Community Cookbook

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

thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

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)