cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
New Member

Microsoft Flow | Custom Connector Issues - Problem with dynamic values

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:

flowdropdown.PNG

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:

image.png

1 REPLY 1
Community Support
Community Support

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:

Describing Parameters

Regards,

Michael

 

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (8,695)