Hello,
I'm trying to add a dynamic values dropdown in an array (picture below):
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).
My question would be - am I doing something wrong or is this a Flow issue? Has anyone else encountered this or has a solution?
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,