Skip to main content Build an agentic enterprise Get Started Guided Tours Security & Governance Dataverse Connectors Power BI Desktop Pro Premium Embedded Report Server Power Apps Power Automate Power Pages Copilot Studio Pricing Resources by Product Power Platform Learn Power Platform Blog Documentation Power Platform Topics Contact us Start free
1 min read

Create a Custom Connector for your Web API from within Visual Studio


I’m excited to announce that Power Platform is now a connected service in Visual Studio 2022 Preview!

Code-first developers will now be able to create both APIs and connectors from within Microsoft Visual Studio, thereby minimizing context switching when developing custom connectors for Microsoft Power Platform.

Let’s explore how to create a simple Power apps canvas app from an ASP.NET Web API project.

Create a new ASP.NET web API.

Create a new ASP.NET Web API project in Visual Studio. This project template provides you a sample web API that you can use to create power apps. This sample returns random numbers as temperature.

graphical user interface, text, application
Create a ASP.NET Core Web API Project

Add Power Platform as a connected service.

By adding Power Platform as a service dependency, you can update an existing custom connector, or create a new one from your API.

Animated Gif Image
Connected Services

Visual Studio leverages dev tunnels feature to expose your local running API to a public endpoint. It means you can use Power Apps with your API running in your local environment!

a screenshot of a computer
Running your API

Create a mobile app by using Power Apps

With you API running you can use Power Apps to quickly create a phone app with the custom connector that Visual Studio created for you.

graphical user interface, application, Word
Power Apps studio

Debug and Hot Reload

Once the web API is running in your development environment, you can debug in real time and even Hot Reload your code.

graphical user interface, application
Debug running code with Hot Reload

What’s next

If you don’t have already, create your own Power Platform Developer Environment for free.

Download Visual Studio Preview to try it today!

Documentation:

Visual Studio connected service (Preview)

Create a Canvas App front end for your ASP.NET web API (Preview)

If you have any questions, issues or feedback, please reach out to ppdevtools@microsoft.com.

Happy coding.

  • Power Pages
    Two coworkers working in cubicle looking at computer monitor
    1 min read

    Modern List in Power Pages is now generally available

    Today, we’re announcing the general availability of Modern List in Power Pages, a refreshed data presentation experience that helps makers showcase Dataverse data with modern Fluent UI components, seamless infinite scrolling, inline filtering, shimmer loading, flexible low-code customization and custom JavaScript support.
  • Power Apps
    Power Platform Feature Update (hero image)
    20 min read

    What’s new in Power Platform: September 2026 feature update

    Power Platform Build hands-on Power Platform and AI expertise with Power Series Developed by the Power CAT team, Power Series is now available with 20 hands-on labs that help customers, partners, and field teams build practical Power Platform and AI skills at their own pace.