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
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,831)