Relationships- Duplicates adding Education Loop
Hi all- I'm struggling a bit on how to get the correct formatting for a table I am putting into a Word Merge document.
I am filtering the list constituents relationships to get Child. Then I want to pull the Child's Education if we have any on their record. Some of the children have multiple education records and some children don't have any.
I have Get a Constituent with the Child's system ID, and then List Constituent Educations with the Child's system ID.
I add the Child's Name to Append to Child Array
Then I have Apply to each (Loop) for each Child and their School Name, Class Year and I add these values to the same array used above Child Array.
My end result is:

How can I get the education to move up a row if possible?? OR get rid of the 1st row and have Joe Smith appear twice with his education? I've tried UNION but they aren't duplicate rows. I've tried putting them in two different arrays but the issue is some children don't have a school like Hillary so I would be missing those if I didn't have the name in a separate array. I've also tried a condition if the School wasn't blank but it doesn't pull in Hillary Smith if the array was in the No section.
Thanks for any help!
Carolyn Grant
Middlebury College
Comments
-
@Carolyn Grant
Creating a single table from multiple arrays can be tricky for sure. You usually end up needing to build the table manually in JSON. I outlined this process on another post recently, take a look at it here and see if it helps you. The most straight-forward way of doing this would create your second option - it would put the name on every row.Let me know if you need help troubleshooting.
0 -
Hi Ben- thanks for replying. I think that's what I'm doing here but I'm not sure. I'm looping through each child (Body is a filter array= Child from List Relationships)
I want to get every child's name so I append each name to an array.

Then children may have many School records. Some have 3 education records. So I have to loop through each School below.

Inside the education loop I have this append to the same Array called Child Array.

I've searched many things like append an array to another array but none of them seem to help with what if the child has no school records. It's like combining two loops.
Thanks for any help!
Carolyn
0 -
@Carolyn Grant
You're very close.The simplest solution would be to delete your first Append to array action and add the name and age to the Append action inside your school loop. But as you noted, this would mean that children with no school records would not show up on your list.
If it were me, I'd use a conditional here. What you want is a flow that checks if there are any results returned from your “List constituent educations - CHILD” action. If there more than zero results, you want it to loop through them and append them all to your array, including the name and age of the child. If there are no results, you want to append a single row to your array that contains only the name and age.
You can use the length() expression to return the number of results from your education action. If you haven't used expressions like this before, let me know and I can provide an example.
1 -
That worked!! I swear I tried doing a condition and nothing ever came up in my No Side. For some reason using Count worked.



I did a Final Compose outside of the condition loop and everything is in there. Children without education and children with education listing each school.
THANK YOU!!
Carolyn
1
Categories
- All Categories
- 6 Blackbaud Community Help
- 213 bbcon®
- 1.4K Blackbaud Altru®
- 401 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 15 donorCentrics®
- 360 Blackbaud eTapestry®
- 2.6K Blackbaud Financial Edge NXT®
- 655 Blackbaud Grantmaking™
- 576 Blackbaud Education Management Solutions for Higher Education
- 3.2K Blackbaud Education Management Solutions for K-12 Schools
- 939 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 84 JustGiving® from Blackbaud®
- 6.6K Blackbaud Raiser's Edge NXT®
- 3.7K SKY Developer
- 248 ResearchPoint™
- 119 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 241 Member Lounge (Just for Fun)
- 34 Blackbaud Community Challenges
- 34 PowerUp Challenges
- 3 (Open) PowerUp Challenge: Chat for Blackbaud AI
- 3 (Closed) PowerUp Challenge: Data Health
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Product Update Briefing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports+
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Email Marketing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Gift Management
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Event Management
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Home Page
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Query
- 791 Community News
- 2.9K Jobs Board
- 53 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)

