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 / Set Choices programati...
Power Automate
Unanswered

Set Choices programatically

(0) ShareShare
ReportReport
Posted on by 54

Hi,

 

Is it possible to set the choices in a choice list programmatically, by getting them to reference a list or something like that?

Apologies for the noob question.

tc839_0-1717700642885.png

 

Thanks in advance

 

 

I have the same question (0)
  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    I don't think so...that form is rally basic.  You might be better off handling it with separate Message fields:

    Example:

    Copy and paste this into a blank flow; it will show you how input dialog boxes can be routed through using a Switch -> Case functionality:

    Variables.CreateNewList List=> Alphabet
    Variables.AddItemToList Item: $'''A''' List: Alphabet
    Variables.AddItemToList Item: $'''B''' List: Alphabet
    Variables.CreateNewList List=> Fruit_A
    Variables.AddItemToList Item: $'''Apple''' List: Fruit_A
    Variables.AddItemToList Item: $'''Appricot''' List: Fruit_A
    Variables.CreateNewList List=> Fruit_B
    Variables.AddItemToList Item: $'''Banana''' List: Fruit_B
    Variables.AddItemToList Item: $'''Blueberry''' List: Fruit_B
    Display.SelectFromListDialog.SelectFromList Title: $'''Choose a Letter!''' Message: $'''What letter do you want to start with?''' List: Alphabet IsTopMost: False AllowEmpty: False SelectedItem=> SelectedItem SelectedIndex=> SelectedIndex ButtonPressed=> ButtonPressed2
    SWITCH SelectedItem
    CASE = $'''A'''
    Display.SelectFromListDialog.SelectFromList Title: $'''Choose a Letter!''' Message: $'''What letter do you want to start with?''' List: Fruit_A IsTopMost: False AllowEmpty: False SelectedItem=> SelectedItem2 SelectedIndex=> SelectedIndex2 ButtonPressed=> ButtonPressed2
    CASE = $'''B'''
    Display.SelectFromListDialog.SelectFromList Title: $'''Choose a Letter!''' Message: $'''What letter do you want to start with?''' List: Fruit_B IsTopMost: False AllowEmpty: False SelectedItem=> SelectedItem2 SelectedIndex=> SelectedIndex2 ButtonPressed=> ButtonPressed2
    END

    Good luck!

  • tc839 Profile Picture
    54 on at

    Hey Michael, thanks for the work around. Shame I can't edit the choices themselves. I hope they improve the custom form in the future.

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