web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Custom connector: drop...
Power Automate
Unanswered

Custom connector: dropdown advanced options

(1) ShareShare
ReportReport
Posted on by 30

I'm creating a connector in which one of the fields is about a language ID. Our API takes an integer, where for instance 1 is for English, 2 is for French etc.

It's not practical for users to have to research what is the ID of their language, so I wanted to do a dropdown where they would select the name of the language and it would send the corresponding ID to the API.

Eg: "English => 1", "French => 2", etc.

 

However, I don't understand if I can do that in Flows.

We don't have an API call that would return this information, so I can't create an action about it, and thus I can't use a dynamic dropdown.

Is there a way to do this in a static dropdown?

Categories:
I have the same question (0)
  • Jay-Encodian Profile Picture
    2,920 on at

    Hey @Kol

    How are you creating your endpoint for the connector? 

    We typically use .Net Core Web APIs (C#)... if you're doing the same you should just be able to use an enum, the default JSON serialization would simply support this approach, your swagger defintion would simply contain something like. which flow would render has a drop down. 

    "HorizontalAlignment": {
     "default": "Center",
     "enum": [
     "None",
     "Left",
     "Center",
     "Right",
     "Justify",
     "FullJustify"
     ],

    HTH

    Jay

  • varungore Profile Picture
    Microsoft Employee on at

    Hi @Kol,

    You may add following editor option extension to parameter properties to support your scenario:

    {
    	"name": "language",
    	"in": "query",
    	"required": false,
    	"x-ms-summary": "Language",
    	"type": "string",
    	"default": "1",
    	"enum": [
    		"1",
    		"2"
    	],
    	"x-ms-editor-options": {
    		"items": [
    			{
    				"title": "English",
    				"value": "1"
    			},
    			{
    				"title": "French",
    				"value": "2"
    			}
    		]
    	}
    }

     

  • varungore Profile Picture
    Microsoft Employee on at

     

    Hi @Kol ,
    You may use editor option extension as follows:

     

    {
    	"name": "language",
    	"in": "query",
    	"required": false,
    	"x-ms-summary": "Language",
    	"type": "string",
    	"default": "1",
    	"enum": [
    		"1",
    		"2"
    	],
    	"x-ms-editor-options": {
    		"items": [
    			{
    				"title": "English",
    				"value": "1"
    			},
    			{
    				"title": "French",
    				"value": "2"
    			}
    		]
    	}
    }

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Doesn't work with flag enableOpenApiConnection. If it is set to true, the titles are not being displayed, only the values.

  • Andi-Fandrich Profile Picture
    17 on at

    Doesn't work 😞

     

    Solution is here: https://powerusers.microsoft.com/t5/General-Power-Automate/x-ms-editor-options-no-longer-respected/td-p/498146

    I wonder, when MS will start documenting all this?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 269 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 184 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 136 Super User 2026 Season 2

Last 30 days Overall leaderboard