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
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
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 185 members 5,295 guests
Please welcome our newest community members: