Hello,
I am trying to create a custom connector using Azure Functions. I want to populate a dropdown to get input parameters to an operation, something like this:
This is the json file I uploaded to create the connector:
{ "swagger": "2.0", "info": { "version": "1.0.0", "title": "MyAzureFunction" }, "host": "webhookpsstest.azurewebsites.net", "paths": { "/api/HttpTriggerCSharp1": { "get": { "description": "Calls my azure function over https", "operationId": "RunThis", "parameters": [ { "name": "code", "in": "query", "description": "code", "default": "i8aA1r3nxNvekWwQf2quuOfMUQRCecOu9tCaQSiCaVPrczK3PaTNxw==", "type": "string" }, { "name": "name", "in": "query", "required": true, "type": "string", "x-ms-summary": "Select List", "x-ms-dynamic-values": { "operationId": "GetList", "value-path": "id", "value-title": "name" } } ], "responses": { "200": { "description": "Successful response", "schema": { "title": "The response of the api.", "type": "string" } } } } }, "/api/HttpTriggerCSharp2": { "get": { "description": "Calls my azure function over https", "operationId": "GetList", "parameters": [ { "name": "code", "in": "query", "description": "code", "default": "OnEtla1J9Rt3sWrtvTxN3r0DGG6Mr2xLrW5cvZGHSrdD6wc2UlpGmA==", "type": "string" } ], "responses": { "200": { "description": "Successful response", "schema": { "title": "The response of the api.", "type": "string" } } } } } } }
But I am getting error while retrieving the list:
Hi @pengaurav,
It seems there are some problems in your swagger for the path parameter definition:
For path parameter:
"
a path parameter is defined using in: path
and other attributes as necessary. The parameter name must be the same as specified in the path. Also, remember to add required: true
, because path parameters are always required.
"
Check:
Regards,
Michael
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!
User | Count |
---|---|
12 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
19 | |
15 | |
10 | |
9 | |
9 |