Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

x-ms-dynamic-values parameter failing when used in custom connector

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I created a custom connector which talks to an azure function that I deployed. One of the actions returns a list of json, which is used to get list of dropdown in one of the parameters.

 

In the test window, the action returns the list of json as expected, but while using it in the flow building experience, the following error is shown in the dropdown

Capture.JPG

 

{
 "value": [
 {
 "name": "sakumtip5nov5.crm10.dynamics",
 "displayName": "sakumtip5Nov5"
 },
 {
 "name": "trailenvironmenttest.crm10.dynamics",
 "displayName": "TrailEnvironmentTest"
 }
 ]
}

This is the parameter using the list of values as x-ms-dynamic-values

{
 "name": "organization",
 "in": "header",
 "description": "Name of Dynamics 365 organization like Contoso.",
 "required": true,
 "x-ms-url-encoding": "double",
 "x-ms-dynamic-values": {
 "operationId": "GetCrmOrganizationList",
 "value-collection": "value",
 "value-path": "Name",
 "value-title": "DisplayName"
 },
 "x-ms-summary": "Organization Name",
 "type": "string"
 }

This is the operation being referenced

 "/api/GetOrganizationList": {
 "get": {
 "tags": [
 "DataSet"
 ],
 "operationId": "GetOrganizationList",
 "consumes": [],
 "produces": [
 "application/json",
 "text/json",
 "application/xml",
 "text/xml"
 ],
 "responses": {
 "200": {
 "description": "OK",
 "schema": {
 "$ref": "#/definitions/OrganizationsList"
 }
 },
 "default": {
 "description": "Operation Failed."
 }
 },
 "deprecated": false,
 "x-ms-visibility": "internal",
 "summary": "Get org list",
 "description": "Get list of orgs."
 }
 }

 

And these are the definitions

 "definitions": {
 "OrganizationsList": {
 "description": "List of organization",
 "type": "object",
 "properties": {
 "value": {
 "description": "List of organizations",
 "type": "array",
 "items": {
 "$ref": "#/definitions/Organization"
 }
 }
 }
 },
 "Organization": {
 "description": "Organization",
 "type": "object",
 "properties": {
 "Name": {
 "description": "Organization name",
 "type": "string"
 },
 "DisplayName": {
 "description": "Organization display name",
 "type": "string"
 }
 }
 }
 }

What am I missing for using the dynamic values?

 

Thank you

  • Verified answer
    sandeepnmenon Profile Picture
    Microsoft Employee on at
    Re: x-ms-dynamic-values parameter failing when used in custom connector

    My question is for "x-ms-dynamic-values" and not dynamic schema.

    This happens to be an internal issue and is being fixed as we speak.

  • v-yamao-msft Profile Picture
    on at
    Re: x-ms-dynamic-values parameter failing when used in custom connector

    Hi @sandeepnmenon,

     

    Please try to add a “x-ms-dynamic-schema” OpenAPI extension within your Swagger file.

    An example for a dynamic parameter is:

     

    {
    
     "name": "dynamicListSchema",
    
     "in": "body",
    
     "description": "Dynamic schema for items in the selected list",
    
     "schema": {
    
     "type": "object",
    
     "x-ms-dynamic-schema": {
    
     "operationID": "GetListSchema",
    
     "parameters": {
    
     "listID": {
    
     "parameter": "listID-dynamic"
    
     }
    
     },
    
     "value-path": "items"
    
     }
    
     }
    
    }

     

    More details about the “x-ms-dynamics-schema” OpenAPI extension, please check it at here:

    https://docs.microsoft.com/en-us/connectors/custom-connectors/openapi-extensions#x-ms-dynamic-schema

     

    Best regards,

    Mabel

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,660 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow