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 / 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

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard