cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

[Bug] Custom connector: dynamic values dropdown doesn't work in array

Hello,

I'm trying to add a dynamic values dropdown in an array (picture below):
image.png

Swagger used:

"/api/v1/test": {
    "get": {
        "tags": [
            "Attributes"
        ],
        "operationId": "testOperation",
        "consumes": [],
        "produces": [
            "application/json",
            "text/json"
        ],
        "parameters": [],
        "responses": {
            "200": {
                "description": "Success",
                "schema": {
                    "uniqueItems": false,
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/NameValuePair"
                    }
                }
            }
        },
        "x-ms-visibility": "internal"
    }
},
"/api/v1/testValueLookup": {
    "get": {
        "tags": [
            "Attributes"
        ],
        "operationId": "testValueLookupOperation",
        "consumes": [
            "application/json-patch+json",
            "application/json",
            "text/json",
            "application/*+json"
        ],
        "produces": [
            "application/json",
            "text/json"
        ],
        "parameters": [
            {
                "name": "Attribute",
                "in": "body",
                "required": false,
                "schema": {
                    "$ref": "#/definitions/Attribute"
                }
            }
        ],
        "responses": {
            "200": {
                "description": "Success"
            }
        }
    }
}
"definitions": {
    "Attribute": {
        "uniqueItems": false,
        "type": "array",
        "items": {
            "$ref": "#/definitions/NameValuePair"
        }
    },
    "NameValuePair": {
        "type": "object",
        "properties": {
            "name": {
                "type": "string",
                "x-ms-dynamic-values": {
                    "operationId": "testOperation",
                    "value-path": "Value",
                    "value-title": "Name"
                }
            },
            "value": {
                "type": "string"
            }
        }
    }
}

 

The problem I'm running into - clicking the dropdown button produces an empty dropdown and does not call "testOperation" (or any endpoint for that matter). Using the same "x-ms-dynamic-values" in a parameter works properly (loads the values my API is returning).
image.png

My question would be - am I doing something wrong or is this a Flow issue? Has anyone else encountered this or has a solution?

 

 

 

1 REPLY 1
v-bacao-msft
Community Support
Community Support

 

Hi @Anonymous ,

 

Please check this similar thread and see if it helps:

https://stackoverflow.com/questions/50066215/load-dynamic-fields-in-microsoft-flow-custom-connector

 

Best Regards,

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

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (4,561)