PowerApps Custom Connector
About the Author: Manish Luhana
Microsoft business applications specialist and certified trainer.
Categories: Power Apps, Power Platform0 CommentsPublished On: 29 July 2021

custom-connector

To consume our own API, we may need to construct bespoke connections in several circumstances. In this article, we’ll go through how to use a custom connector in PowerApps to consume our own API (REST API).

I’ve already built a custom connector that takes a parameter as a username and returns user information as a JSON array.

Custom Connector

List-Custom-Connector

Test Custom Connector
test-custom-connector

Be careful to provide the Default answer for each action. Only those fields will be presented as designer outputs. Otherwise, we will be unable to obtain the property.

Include a Default Response

Click “default” in the Definition tab’s Response section.

add-default-response

Add-Response

Check out Custom Connector.

Read-Custom-Connector

OnSelect – UpdateContext({CustomData: ProcessAgent.GetAgent({name:”stalin@lti.onmicrosoft.com”}).value})

· Process Agent — Custom Connector Name is used in this situation.

· Get Agent – Name of Operation – Parameter

· Save the outcome to the local variable “Custom Data”

· Read the outcome and present it in a single textbox or data table.

View as a single piece of text

Because the answer is a JSON array, we must use the First method to obtain a single value.

Label text : First(CustomData).displayName

Single-Result

Results will be displayed in Data table Item.

CustomData : item property.

Datatable

We discussed how to test the custom connector and use it in PowerApps in this article.

Thank you for reading.

tech mentor sidebanner
  • Continue reading
  • Continue reading
  • Continue reading
  • Continue reading
  • Continue reading

Leave A Comment