cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Imke
Resolver I
Resolver I

API call returns boolean instead of record

Hi there,

when calling an API in the app, it returns a boolean (true) instead of the record (that is returned when I test the custom connector during design). Anyone an idea what I'm doing wrong here? Do I have to navigate to the body of the response specifically? If so, how?

 

UpdateContext( { ReturnApiCall:PowerBIClient.DatasetsGetDatasets() } )

 

creates this:

image.png

 

but when testing it in the connector, it returns a record (in the body):

image.png

 

Thanks a lot!

1 ACCEPTED SOLUTION

Accepted Solutions
v-yuxima-msft
Community Support
Community Support

Hi @Imke ,

 

I found other user has faced similar issue with you, Please check the information of this case:

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

 

Please check if you have specified proper return type within your Open API definition file. Also please check if you have typed proper returned content within the Response Body section of the request in your custom connector.

 

Hope the reference link could be helpful.

Best Regards.

Yumia

 

View solution in original post

2 REPLIES 2
v-yuxima-msft
Community Support
Community Support

Hi @Imke ,

 

I found other user has faced similar issue with you, Please check the information of this case:

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

 

Please check if you have specified proper return type within your Open API definition file. Also please check if you have typed proper returned content within the Response Body section of the request in your custom connector.

 

Hope the reference link could be helpful.

Best Regards.

Yumia

 

Excellent! Thanks, that solved the problem 🙂

Helpful resources

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

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

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