I'm attempting to connect to a local WebAPI in VS 2017 to test that i can retrieve information in PowerApps using a custom connector.
My base host is formatted as: 'localhost:<port_no>'
I have set the base URL as simply '/'.
It all just seems that PowerApps is having a hard time locating the localhost. I have also tried connecting to the API with a simple MVC application and it's just a case of configuring a simple HTTPClient.
Does anybody know how i can connect to a localhost via PowerApps?
Solved! Go to Solution.
Just to confirm a few things, have you installed the on-premises gateway on your local machine (this is because URI that you specify in your custom connector works relative to where the on-premises is installed)? Do you have a Plan 1 or 2 license (or are within a valid trial period) to enable you to use custom connectors?
When you created your custom connector, did you check the option on the first page to use 'on-premises data gateway'?
Also, on your local machine, do you have any firewall/antivirus software installed? What we're looking for here is anything that could block the traffic between the gateway and your WebAPI.
Yes, because you're trying to connect to a web service that's running on your local machine, it's necessary to install the on-premises gateway. Without it, you can only connect to web services that are accessible via the public internet.
Just to clarify one of my previous points, here's the checkbox you'll need to check when you create your custom connector.
Sorry for the delayed reply but i tried creating an On-Premise Gateway but still had trouble connecting to my localhost port. Do you have any experience or have any examples of connecting to a localhost web api via Custom Connectors?
Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.
Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.
Continue your learning in our online communities.
Features releasing from October 2019 through March 2020
Coming to a city near you
Fill out a quick form to claim your user group badge now!
Connect, share, and learn with your peers year-round
Register by September 5 to save $200