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 / Unable to populate dro...
Power Apps
Answered

Unable to populate dropdown with API JSON response via custom connector

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi, 

 

I'm attempting to write this post for a second time as the first seems to have disappeared without a trace.

 

I have been attempting to populate a drop-down within my app using a custom connector (an on-premise gateway). However, I cannot figure out how to access/display the information within the JSON result that is returned.

 

I want to display the 'text' value of each 'risk' inside the dropdown. The API is successful and the correct data is returned (see images), but I can't figure out how to actually access this value. The error I receive when I try to access each 'risk' is:

 

"Name isn't valid. The identifier isn't recognized."

 

I believe it's not being recognised because it is unable to access the object returned.

 

Any help would be greatly appreciated. Thanks.

 

image1.png

 

 

image2.png

 

Categories:
I have the same question (0)
  • Verified answer
    Carsten_Growth Profile Picture
    Microsoft Employee on at

    If you take a look at your JSON the items returned is an object. Which means it becomes records inside Power Apps. You would first need to either Ungroup that object to become a table you can work with or drill-in with FirstN(...)

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi Carsten_Growth,

     

    Yes you are correct - in order to display the correct values I had to drill into the items object. The formula I used was:

     

    ForAll(IncidentReportAPI.GetAllRisks().result.items, risk.text)

     

    Thanks!

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 181 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 112 Super User 2026 Season 2

Last 30 days Overall leaderboard