Exercise - Use the custom connector in Power Apps canvas app
You've created the connector, tested it, and now you'll learn how to use it in a canvas app.
Power Apps requires either an Microsoft 365 license or a free trial. Learn more about your licensing options. Microsoft products include Microsoft Power Apps and Power Automate.
Create a canvas app
First of all, create a blank canvas app. In Power Apps studio go to the
Createmenu at the left-hand side and click the
Canvas app from blankpanel.
When a modal pops up, give the name, Inventory, to the
App namefield and leave the format as default. Then click the
Datamenu to add the custom connector. You will see nothing in the Data pane.
Add databutton and enter inventory in the search box, and you will see the
InventoryManagercustom connector. (Assuming you named your custom connector
InventoryManagerconnector, and you will see the
Your custom connector is successfully added to your Power Apps. Navigate to the
Insertmenu at the top and click
Buttonto add a button control onto the canvas.
Button1is selected, choose the property value to OnSelect and enter the function formula below.
InventoryManagementrepresents the custom connector and
getapiwarehouselocations()represents an API endpoint. The
warehousescollection stores the result that the
Galleryand select the
Verticalcontrol is added, it asks the data source.
warehousescollection declared above. Then the
Verticalcontrol changes below because the
warehousescollection currently contains nothing.
While holding your
Altkey on Windows (or
Optionkey on Mac), click the
Buttonbutton, and you will see the list of warehouse locations showing up in the
You have successfully included the custom connector into your Power Apps app.