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 / Need help with logic t...
Power Automate
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

Categories:
I have the same question (0)

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 167

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard