Currently experimenting with utilising custom connectors to other APIs from PowerApps. In this scenario, I'm trying to connect to Google's QPX Express API to search for flights between cities. The endpoint i'm accessing utilises a POST, with params such as destination and home city passed in the body. It should return a variety of search results.
I have been able to succesfully set up the custom connector in PowerApps and can test it succesfully there.
This is the request set up under the "Test" section:
And here is the response:
However, when I go to use this connector I don't seem to receive any response. I have tried to collect the results in powerapps with the following. In both cases, the collection and context variable I'm trying to piece together as the response both end up empty:
I had a read of some threads and a play with the "Response" of the custom connector but the same issue is still occuring. This is what the response is set up as in the custom connector. I got this automatically from copying and pasting the sample response header and body I got from the "Test" above:
Any ideas where I might be going wrong?
Could you please take a try to add a gallery and then put the function there?
Take a try with the QPXExpress.searchflights(string).Body (or response) under the items property of the gallery.
It may not be the body parameter, add a dot after the QPXExpress.searchflights(string), and check to see if there are any dynamic content displayed.
Tried that initially but doesn't appear to be any dynamic content built from the command, which is why I then tried to just collect the lot / turn it into a context variable. I tried .key, etc (all of the properties displayed on the Response body screenshot above) and also can't get anything back.
I am guessing a bit here, but If I'm not mistaken, the response comes back from QPX, then is interpreted by the custom connector, and then back to Powerapps right? If testing the custom connector works fine, but Powerapps doesn't get anything back, I would think that there is an issue somewhere between sending the response back from the custom connector, and powerapps' interpretation of it?
I have the same issue and thought it may relate to how the connector parse the JSON arrary. I can't figure out how to display the response. Any update on the issue?
Is there still no solution to this? This was actually the first thing I tested in PowerApps for a customer and its quite disappointing to have such basic capability not working...
Same here. I've checked using Flow which can get response from my custom connector and has no problem with using output values.
But in PowerApps values from response are not fetched.
This is still an issue and
should have to be resolved if we thinks seriously PowerApps + CustomConnector.
Hi @rolycityaccount. Maybe instead of setting the response as a variable in PowerApps, try to ClearCollect() the results instead.
ClearCollect( colAPIResponse, customConnector.Action(value1, value2, etc) )
This is how I grab responses. Good luck!