Hi All,
Try to test a connecting to an azure function. Everything is good until i try to use the connection on the form. Receive an error that "The Data returned in the response is invalid". I am using the default azure functions test function to try and pull in name to a field. The test of the function in power apps succeeds but not on the form. Any help with why it failes out on the form but not on the test conections or suggestions on troubleshooting would be appreciated. Swagger file below -
{
"paths": {
"/api/Function1": {
"get": {
"operationId": "RunThis",
"summary": "Default API function",
"description": "Calls my default Azure Function over Https",
"responses": {
"200": {
"description": "Successful response",
"schema": {
"x-oad-type": "string",
"type": "string",
"title": "The response of the api."
},
"x-oad-type": "response"
}
},
"parameters": [
{
"name": "code",
"in": "query",
"description": "code",
"required": false,
"type": "string",
"default": "<code>",
"x-oad-type": "parameter"
},
{
"name": "name",
"in": "query",
"description": "Name Value ",
"required": true,
"type": "string",
"x-oad-type": "parameter"
}
]
},
"x-oad-type": "operation"
},
"/api/CreateBarcode": {
"get": {
"operationId": "CreateBarcode",
"summary": "Generates Barcode image",
"description": "Generate a barcode file ",
"responses": {
"200": {
"description": "Successful response",
"schema": {
"x-oad-type": "string",
"type": "string",
"title": "The Response of the API"
},
"x-oad-type": "response"
}
},
"parameters": [
{
"name": "code",
"in": "query",
"description": "code",
"required": false,
"type": "string",
"default": "<code>",
"x-oad-type": "parameter"
},
{
"name": "Number",
"in": "query",
"description": "Number to create barcode from",
"required": false,
"type": "integer",
"format": "int32",
"x-oad-type": "parameter"
}
]
},
"x-oad-type": "operation"
}
},
"info": {
"title": "BarCodeGenerator",
"version": "1.0.0",
"description": "Testing Barcode Generation via PowerApps"
},
"host": "tpgeneratebarcode.azurewebsites.net",
"basePath": "/",
"schemes": [
"https"
],
"consumes": [],
"produces": [
"application/json" ,
"text/plain; charset=utf-8"
],
"swagger": "2.0"
}