cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Imke
Advocate III
Advocate III

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
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Check out the New Ideas Site

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (4,927)