Jump to content

How to Build a Custom Connector from Scratch


Recommended Posts

Guest Julia_Muiruri
Posted

Day 3 of the 30DaysofFusion Program Summary

 

 

Today, we have just built a custom connector wrapping the chucknorris io free JSON API from scratch and used it in a Power Automate and I'm sure you agree that it's a fun and easy process, right?

But why do you need to create a custom connector?

 

Connector Use case[/url]

 

 

Team XYZ (a fusion team) comprises of a Business Manager (citizen developer building low code solutions on Power Platform), IT Admin, Researcher and Pro-Dev. The Researcher has identified a new External Service (with a free & public API) that would greatly benefit their business goals and they would like to access it directly from their system. However, the Business Manager, building the low code solutions lacks the coding background to use the API endpoints directly from his solution. The Pro-Dev therefore steps up to fill in the gap by building a connector to wrap the API and publishes it to the organization's environment. The Business Manager then uses this connector to access the external service, helping the team hit their business goals and everyone is happy.

 

service, helping the team hit their business goals and everyone is happy.

 

What we covered today

 

 

Every person's role on the Power platform towards digital transformation.

 

largevv2px999.png.1ccc28245697e86e3f6a1cd337d78e0c.png

 

What is a connector? Note: Connectors allow you to not only access Microsoft products, but also external services

 

largevv2px999.png.7f211dbd61aa81d5dacfa38ebf854a72.png

 

Custom connectors are used to:

 

  • Add services not currently supported
  • Expand an existing connector that doesn't have the trigger/action you want to use

Step-by-step - Build a connector

 

 

Step 1: Read the Docs/ know the API you want to build a connector for.

 

 

 

Step 2: Start in one of the products (Power Apps, Power Automate or Logic Apps). You can choose one of the following options to start building your connector:

 

  1. Create one from blank. See example of the

  2. Create from Azure Service (Preview) - Super useful when using Azure API Management
  3. Import an OpenAPI File (version 2)
  4. Import an OpenAPI from URL
  5. Import a Postman collection. Learn how to Create a Postman collection for a custom connector
  6. Import from GitHub

 

Step 3: Set up the Authentication

 

 

 

Step 4: Define the operations (triggers/actions) for your connector. The action you want to create MUST be implemented by the API

 

 

 

Step 5: Add code if needed (for now C# code is supported)

 

 

 

Step 6: Save and test your connector

 

 

 

When you build your connector, ensure you hit save button to avoid losing all your work.

 

Note: If you want your connector to be used across different environments, create it within a solution

 

largevv2px999.png.fddd1e24b2b9f1fa4d0b36ac4aafe144.png

 

Finally. these tools will help you build custom connectors:

 

Next Steps

 

 

Continue reading...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...