1 min read
Building Power Automate Custom Connectors
When your API isn’t in the Power Automate connector gallery, build your own custom connector.
OpenAPI Definition
Start with a Swagger/OpenAPI spec:
swagger: "2.0"
info:
title: Inventory API
version: "1.0"
host: api.company.com
basePath: /v1
schemes:
- https
securityDefinitions:
apiKey:
type: apiKey
in: header
name: X-API-Key
paths:
/inventory/{sku}:
get:
operationId: GetInventory
summary: Get inventory level for a SKU
parameters:
- name: sku
in: path
required: true
type: string
responses:
200:
description: Success
schema:
type: object
properties:
sku:
type: string
quantity:
type: integer
warehouse:
type: string
Creating the Connector
- Navigate to make.powerapps.com
- Data → Custom Connectors → New
- Import your OpenAPI file
- Configure authentication
- Test and create
Usage in Flows
Once created, business users can use it like any other connector:
When an item is created in SharePoint (Trigger)
↓
Get Inventory (Custom Connector)
↓
Condition: If quantity < 10
↓
Send email notification
The power of custom connectors: developers build once, business users consume forever.