cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
maheshmarthi
Regular Visitor

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
Regular Visitor

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
Regular Visitor

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
Regular Visitor

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
secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Top Solution Authors
Top Kudoed Authors
Users online (8,193)