web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Flow for finding Child...
Power Automate
Answered

Flow for finding Child Items in SharePoint list

(0) ShareShare
ReportReport
Posted on by 90

I have a parent list and a child list. My scenario is each parent can have many children. ParentID is the foreign key in my child list.

Now when I am running a flow on Parent list and trying to read my child list and with a condition ID = ParentID. The condition is failing for all the records even though the Parent Item I am testing has 3 child items.

 

Lana_0-1594924611693.png

 

What am I missing?

 

Also all the records that this condition satisfy needs to be written into one word document in a table format. How can I achieve that?

 

Thanks in advance!

 

 

Categories:
  • Verified answer
    ScottShearer Profile Picture
    25,331 Most Valuable Professional on at

    @Lana 

    I don't see any issue with your condition - I believe that it should be working.  That said, try removing the condition and use an OData filter instead:

    image.png

     

     

  • Lana Profile Picture
    90 on at

    The flow fails and the message is \"ParentID eq 'ID'\" is  not valid

     

    It may be because I am kicking off this flow from my parent list.  ParentID is a column in my child list. 

  • ScottShearer Profile Picture
    25,331 Most Valuable Professional on at

    @Lana 

    I suspect that Flow doesn't like the column name.  The filter uses the columns internal name which may not be the same as the display name (the name you see).

    The Get items action gets items from your child list.  Go to the child list and go to list settings.  Click on the parent ID column.  The internal name will be at the end of the URL after Field= - use that name in the filter and try again.

     

     

  • Lana Profile Picture
    90 on at

    Field internal name is ParentID itself

  • Lana Profile Picture
    90 on at

    Hello Scott,

     

    You are right about the filter query. Its just that it doesn't need a single quote around ID.

     

    ParentID eq ID worked for me.

     

    Thank you so much for your help. I really appreciate it!

  • MustafaHussain Profile Picture
    173 on at

    Hi @Lana 

    how did you get those child items in a array or something ? because I want to get those child items and create new lines in Dynamics as per Child items count and with their details.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 315 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 267

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard