cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
adagloria
Level: Power Up

Connecting to Custom API

I have succeeded in creating and testing the Custom Connector and it works fine. The challenge I am having now is, I am unable to call the API from inside the powerapp. I want to bind the API to the drop-down field such that the data automatically populates the drop-down field OnSelect or OnChange. 

2 REPLIES 2
Microsoft Employee

Re: Connecting to Custom API

I am looking for exactly the same functionality. I looked at a similar thread that I am not sure would help you -

 

https://powerusers.microsoft.com/t5/General-Discussion/How-do-I-bind-my-custom-API-to-a-dropdown-con...

 

For me this thread did not work as the response I get from the custom API connector querying a graph API saves the outcome in a collection with arrays. I am figuring out how I could retrieve the result from a collection array and have it binded to a dropdown list.

 

PowerApps.JPG

Community Support Team
Community Support Team

Re: Connecting to Custom API

Hi @adagloria,

Is there some error message when you call your API within your app?

Could you please share a bit more about your issue?

Further, could you please share more details about the Custom API formula you used within your app?

I agree with @alzia's thought almost. Please check if you have specified proper response schema for the specific Operation within your custom connector.

In addition, please also check if you have specified proper response type within the Response part of your OpenAPI definition file.

You could consider take a try to test your API using Postman tool, and then get the response body of the '200 OK' response, after that, copy that response body and paste it into the Response schema of the 200 response for the specific Operation in your custom connector.

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 297 members 3,271 guests
Recent signins:
Please welcome our newest community members: