cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Regular Visitor

Custom Connector: Dynamic dropdown values not loading

Hi,

 

I'm trying to use custom action as dynamic drop down but its not working.

 

Here is the sample details

 

V1 Sample is working

V2 Sample is not working

 

Swagger 

 

 

{
  "swagger": "2.0",
  "info": {
    "title": "RM-RestAPI",
    "description": "",
    "version": "1.0"
  },
  "host": "rm-restapi.azurewebsites.net",
  "basePath": "/",
  "schemes": [
    "https"
  ],
  "consumes": [],
  "produces": [],
  "paths": {
    "/api/Values": {},
    "/api/Values/{id}": {
      "get": {
        "responses": {
          "default": {
            "description": "default",
            "schema": {}
          }
        },
        "summary": "V2 Sample",
        "operationId": "v2_sample",
        "x-ms-visibility": "important",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "request id",
            "required": true,
            "type": "integer",
            "x-ms-visibility": "important",
            "format": "int32",
            "x-ms-dynamic-list": {
              "operationId": "get_v2_addresses",
              "itemsPath": "data/addresses",
              "itemValuePath": "return_address_id",
              "itemTitlePath": "address_name"
            },
            "x-ms-dynamic-values": {
              "operationId": "get_v2_addresses",
              "value-path": "return_address_id",
              "value-collection": "data/addresses",
              "value-title": "address_name"
            }
          }
        ]
      },
      "delete": {
        "responses": {
          "default": {
            "description": "default",
            "schema": {}
          }
        },
        "summary": "V1 Sample",
        "operationId": "v1_sample",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "type": "integer",
            "x-ms-visibility": "important",
            "format": "int32",
            "x-ms-dynamic-values": {
              "operationId": "get_v1_addresses",
              "value-path": "return_address_id",
              "value-collection": "data",
              "value-title": "address_name"
            }
          }
        ],
        "x-ms-visibility": "important"
      }
    },
    "/api/V1Addresses/": {
      "get": {
        "responses": {
          "default": {
            "description": "default",
            "schema": {
              "type": "object",
              "properties": {
                "data": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "return_address_id": {
                        "type": "integer",
                        "format": "int32",
                        "description": "return_address_id"
                      },
                      "address_name": {
                        "type": "string",
                        "description": "address_name"
                      },
                      "address_country": {
                        "type": "string",
                        "description": "address_country"
                      }
                    }
                  },
                  "description": "data"
                }
              }
            }
          }
        },
        "summary": "Get V1 Addresses",
        "operationId": "get_v1_addresses",
        "x-ms-visibility": "important",
        "parameters": []
      }
    },
    "/api/V2Addresses/": {
      "get": {
        "responses": {
          "default": {
            "description": "default",
            "schema": {
              "type": "object",
              "properties": {
                "data": {
                  "type": "object",
                  "properties": {
                    "addresses": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "return_address_id": {
                            "type": "integer",
                            "format": "int32",
                            "description": "return_address_id"
                          },
                          "address_name": {
                            "type": "string",
                            "description": "address_name"
                          },
                          "address_country": {
                            "type": "string",
                            "description": "address_country"
                          }
                        }
                      },
                      "description": "addresses"
                    },
                    "total": {
                      "type": "integer",
                      "format": "int32",
                      "description": "total"
                    }
                  },
                  "description": "data"
                }
              }
            }
          }
        },
        "summary": "Get V2 Addresses",
        "operationId": "get_v2_addresses",
        "x-ms-visibility": "important",
        "parameters": []
      }
    }
  },
  "definitions": {},
  "parameters": {},
  "responses": {},
  "securityDefinitions": {},
  "security": [],
  "tags": []
}

 

 

 

Samples

 

Working:

https://rm-restapi.azurewebsites.net/api/V1Addresses

 

 

{"data":[{"return_address_id":123,"address_name":"Add-1","address_country":"QA"},{"return_address_id":456,"address_name":"Add-2","address_country":"UK"},{"return_address_id":789,"address_name":"Add-3","address_country":"PK"}]}

 

 

 

Not Working:

https://rm-restapi.azurewebsites.net/api/V2Addresses

 

{"data":{"addresses":[{"return_address_id":123,"address_name":"Add-1","address_country":"QA"},{"return_address_id":456,"address_name":"Add-2","address_country":"UK"},{"return_address_id":789,"address_name":"Add-3","address_country":"PK"}],"total":3}}

 

 

I will really appreciate if someone can help to resolve the issue

 

Dynamic values stopped working 

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

 

@paulschaeflein 

 

0 REPLIES 0

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Users online (13,467)