cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
adagloria
New Member

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
alzia
Microsoft
Microsoft

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

v-xida-msft
Community Support
Community Support

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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (41,708)