To create a custom connector, you must describe the API you want to connect to so that the connector understands the API’s operations and data structures. In this post, you create a custom connector from scratch, without using a Postman collection or an OpenAPI definition to describe the Cognitive Services Text Analytics Sentiment API (our example for this series). Instead, you describe the connector completely in the custom connector wizard.
Build and deploy custom Connector
- Sign in to the PowerApps

- Click Custom Connectors under Data

- Click ‘New Custom connector’ in the right-hand side.

- Select Create from blank
- Give name for the connector
- GetGoogleBooks

- It will open Create connector page

- Fill the General Information
- Upload logo for the connector
- Set the background color
- Give proper description about your connector

- Scheme HTTPS
- Host *: www.googleapis.com
- Base URL: /books/

- Click Security to move next section ‘Security’

- Select ‘No authentication’ for our lab exercise, because we are using open API
- Click ‘Definition’ to move next section

- Add New Action
- Add Definition
- Summary: Get Books Names
- Description: get Books using google API
- Operation ID *: GetBooks
- visibility – none
- Add Definition

- Add request – Click Import from sample
- Verb – Get
- Click import to create request


- Add Response schema: Click default Response link

- Click import from sample

- Open this URL in chrome browser and copy the whole response from the browser : https://www.googleapis.com/books/v1/volumes?q=ISBN:9780789748591
- Paste in the body control

- Click import and set schema to response

- Click ‘Create connector’ to create the connector

- Click Test to test the connector
- Create New connection

- Test the connector give parameter : ISBN:9780789748591

- It will reply the response with 200 status

Implement custom connector in our canvas app
- Create a canvas app

- Click create button to create a application and skip button to skip the default form creation

- Click data source and connect your connector

- Select your connector ‘GetGoogleBooks’
- Add Label Box – Enter ISBN Number
- Add one Text Box
- Add one Button
- Button OnSelect -> Collect(mybooks,GetGoogleBooks.GetBooks({q:TextInput1.Text}))
- Add vertical Gallery control with Image,title nd subtile
- Datasource – First(mybooks).items
- Image: ThisItem.volumeInfo.imageLinks.thumbnail
- Title: ThisItem.volumeInfo.title
- SubTitle: ThisItem.volumeInfo.description
- Output here
