cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
maheshmarthi
Level: Powered On

Unable to make a simple get operation using custom connector in powerapps

I was looking to get Ip address using api.ipify.org

 

There were few threads

 

https://powerusers.microsoft.com/t5/Using-PowerApps/GET-CLIENT-IP-ADDRESS/td-p/146788

https://powerusers.microsoft.com/t5/General-Discussion/Simple-custom-API-for-my-IP-address/m-p/18736...

 

which were suggesting some changes. But none of them is working.

 

It is a simple get operation. and i am gettting below error every time.

 

"error": {
    "code": 500,
    "message": "Expression value is invalid. The template field is required.",
1 ACCEPTED SOLUTION

Accepted Solutions
maheshmarthi
Level: Powered On

Re: Unable to make a simple get operation using custom connector in powerapps

Got it working...

 

use below swagger:

{
  "swagger": "2.0",
  "info": {
    "title": "IPIFY",
    "description": "",
    "version": "1.0"
  },
  "host": "api.ipify.org",
  "basePath": "/",
  "schemes": [
    "https"
  ],
  "consumes": [],
  "produces": [],
  "paths": {
    "/": {
      "get": {
        "responses": {
          "default": {
            "description": "default",
            "schema": {}
          },
		  "200": {
            "description": "default",
            "schema": {}
          }
        },
        "summary": "GetIP",
        "parameters": [
          {
            "name": "format",
            "in": "query",
            "required": true,
            "type": "string",
            "default": "json",
            "x-ms-visibility": "internal"
          }
        ],
        "operationId": "GetIP"
      }
    }
  },
  "definitions": {},
  "parameters": {},
  "responses": {},
  "securityDefinitions": {},
  "security": [],
  "tags": []
}

 

View solution in original post

2 REPLIES 2
maheshmarthi
Level: Powered On

Re: Unable to make a simple get operation using custom connector in powerapps

Got it working...

 

use below swagger:

{
  "swagger": "2.0",
  "info": {
    "title": "IPIFY",
    "description": "",
    "version": "1.0"
  },
  "host": "api.ipify.org",
  "basePath": "/",
  "schemes": [
    "https"
  ],
  "consumes": [],
  "produces": [],
  "paths": {
    "/": {
      "get": {
        "responses": {
          "default": {
            "description": "default",
            "schema": {}
          },
		  "200": {
            "description": "default",
            "schema": {}
          }
        },
        "summary": "GetIP",
        "parameters": [
          {
            "name": "format",
            "in": "query",
            "required": true,
            "type": "string",
            "default": "json",
            "x-ms-visibility": "internal"
          }
        ],
        "operationId": "GetIP"
      }
    }
  },
  "definitions": {},
  "parameters": {},
  "responses": {},
  "securityDefinitions": {},
  "security": [],
  "tags": []
}

 

View solution in original post

cuevasjjm
Level: Powered On

Re: Unable to make a simple get operation using custom connector in powerapps

The custom connector work, but how do you use it in the app in powerapps? 

 

I use a button to make a collection, but it is not displaying the ip address.

ClearCollect(demotest,IPIFY.GetIP())

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (5,124)