cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Saurabh-704
Helper III
Helper III

How to get the result of API in dropdown

Hello All!

I have created one application in which I have integrated API with it. In this application I have taken one Textbox named as subID and second I have taken dropdown. 

 

Now what API is doing that as soon as I am passing subID it will get me the list of colleges. So what I want is, I want to get the list of that colleges in that dropdown format. So how can I achieve this thing?

Can someone please help me with this?!

Thanks in advance!

 

3 REPLIES 3
rsaikrishna
Super User
Super User

@Saurabh-704 

 

What is the format the API is returning the colleges. If you can get all the values in the form of a Table or Collection, you can bind it to the drop down Items property.

 

Please provide additional details to look into it.

 

Regards

Krishna Rachakonda

If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.

Thank you @rsaikrishna for your reply. I am getting result in JSON format. I am getting "ID" as well as "Collage name" in JSON format, but I only want to show College name in dropdown. 

@Saurabh-704 

 

Thats great. 

 

You can use Json function in Power Apps.

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-json

 

Get all the values from JSON to a collection and bind the collection to drop down.

 

Regards

Krishna Rachakonda

If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (1,942)