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 Apps / Can I create multiple ...
Power Apps
Answered

Can I create multiple collections from one connector response having different nested arrays?

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

I'm trying to populate a few different dropdowns from an API response. Instead of making two different calls, is it possible to create two collections if the response has two different arrays? For example:

 

{
 itemList1: ["foo", "bar"],
 itemList2: ["baz", "qux"
}

 

Right now, I can do ClearCollect(itemList1Options, APICall(apiCallHere).itemList1) to to assign the first array. But I can only figure out to how to save the second array to a collection by making a whole new call and using .itemList2 to extract it. How can I do this in just one call? 

Categories:
  • Verified answer
    iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    Hi @aec2018 

     

    You could set the response as a variable and then reference the variable sub-properties 🙂

     

    Set(gblAPIResponse, APICall(apiCallHere));
    ClearCollect(itemList1Options, gblAPIResponse.itemList1);
    ClearCollect(itemList2Options, gblAPIResponse.itemList2);
    ClearCollect(itemList3Options, gblAPIResponse.itemList3);

     

    Cheers,

  • aec2018 Profile Picture
    Microsoft Employee on at

    Wow. I swear I tried that before and it didn't work but I'm realizing now it's because this was when I didn't know I had to provide a strict schema to my custom connector for my PowerApp to recognize nested objects in the response. This makes perfect sense and saves me a bunch of separate API calls. Thanks!

  • iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    Glad I could 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 381 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 340

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard