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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / One Parent Record in S...
Power Automate
Unanswered

One Parent Record in SharePoint with Multiple Child Records in Secondary List, Get Children and Export as XML Into CSV File

(0) ShareShare
ReportReport
Posted on by 95

Hello!
We have a Parent List in a SharePoint Site with a secondary Child List in the same SharePoint Site. We are using a Flow to get the parent records with a status of "Accepted" and it's related children and exporting it to a .CSV file. The problem we are having is that the parent records with more than one related child record are not being added to the xml output. Only one child record is being exported as xml to the CSV and not all the child records. I should note that not all parent records will have more than one child record. So, for those items, the flow works. It gets the parent record and exports the related child records to XML just fine. The issue is if there is more than one child record.

How can we achieve this? PLEASE HELP! Thank you 🙂 

Categories:
I have the same question (0)
  • grantjenkins Profile Picture
    11,063 Moderator on at

    Can you provide a bit more info.

    1. How are the two lists linked? Are you using a Lookup field for instance?
    2. Are you able to show a screenshot of your two lists (sample data or obfuscated is fine)
    3. Are you able to show what you currently have in your flow, and what the current output you are getting is?
    4. How are you converting the JSON to XML?
  • cjwilson80 Profile Picture
    95 on at

    Hi @grantjenkins 

    The lists are linked by a Parent ID column using a lookup column. I've uploaded a GIF of the flow for your reference. What's happening is that we're getting all the child records associated with one parent record, but the child records or overwriting one another and we end up with only the last child record. So, if a parent record has 3 children, only the 3rd child record will be exported, etc. 
    2023-03-10_15-22-16.gif

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard