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
Community Champion
Community Champion

@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.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (4,001)