Today, we have covered building the SWAPI connector (The Star Wars API) from scratch with an introduction to Triggers and Policies, consuming it directly from a Power App and learnt how to build a custom connector from an OpenAPI specification file.
Suppose you want to build your first connector, what are your options?
[Recommended] We have hundreds of existing services/ APIs that are inaccessible from the power platform today. You may decide to look through the list of existing connectors, identify a service with a Public API that is missing a connector and decide to build it for this hackathon. For inspiration on which connector you can build, see a list of the Top Connector Asks Today
A) Identify the Public API, describing available endpoints (/users), operations (GET/users) and operation parameters inputs & outputs
B) Obtain the OpenAPI spec file or Postman collection. APIs like the Daraja API have the Postman collections ready for you.
C) Use it to create a connector
Create your own API, publish it, then create a connector for it.
A) Write your own API
b) Generate an OpenAPI Spec file. (The connector creation wizard currently supports only v2.0 spec files)
If you are working in python, you can use the FastAPI framework which will document the API for you
If JavaScript, you can use Nestjs Framework for your API definition
An Action is what your connector can do. For example, the SWAPI Connector that we created today has an action called 'GetPeople' that returns Star Wars characters and properties like height, mass, hair color etc. from the API
A Trigger is an event/ a condition that when met, causes the system to do something or respond to changes in the underlying data/service. For example, using the Outlook.com connector, you can define steps to be takes automatically when a new email arrives in your inbox, and in this case, when a new email arrives is a trigger for the outlook.com connector
A Policy is added while creating a connector to modify its behavior at runtime. For example, if the API you are working with has a limited number of API calls, you can set throttling limits using a Policy
Head over to https://make.powerautomate.com/ and start today!
Explore resources shared on the presentation deck
Build your first connector, share on social media and tag us to celebrate your learning!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.