Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Need help with logic to create nested API loops

(0) ShareShare
ReportReport
Posted on by 111

I have a set of API calls.

Some are plain calls, such as:

  myapi.com/api/V1/students

  myapi.com/api/V1/classes

And some are nested calls, such as:

  myapi.com/api/V1/classes/{classID}/students

  myapi.com/api/V1/students/{studentID}/grades

Every call might return limited response that should be paginated (not a standard pagination).

 

I need your help with the correct architecture for this - what is the most efficient way to build this solution?

 

For now:

I have built a Child flow that accepts any URL, does pagination and appends all the responses together.

I call for this flow from a Parent Flow that has api list.

I works fine for plain APIs: /classes and /students

When I started to think how do I approach nested calls, I stuck.

The logic will go like this (for example for classes/{classID}/students):

1. I need to get the list of all the classes first. Including Pagination.

2. Then for each class - I need to take its ID, and get all the students. Including Pagination.

I feel that I need to reuse my Child flow inside itself.

I just don't want to recreate all the logic again

Please help

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1