Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Pass selected item from a collection to a field in an entity

(0) ShareShare
ReportReport
Posted on by 292

Hi,

I have a dropdown list which is populated from a collection. I would like to pass the selected item from this dropdown list to a field in an entity. Can it be done?

Categories:
  • karimabdelrazek Profile Picture
    292 on at
    Re: Pass selected item from a collection to a field in an entity

    Hi @eka24 ,

    I have an error message in the button command. Please see the attached screenshot. Many thanks!

  • Verified answer
    eka24 Profile Picture
    20,921 on at
    Re: Pass selected item from a collection to a field in an entity

    Follow these steps:

     1. Insert a Dropdown1 and on its Items property put: The name of your table that contains the    dropdown list.

     

    2. In the Default property of the TextBox (Example Textbox1) which will hold the selected item from thr dropdown put: Dropdown1.Selected.Value

     

    3. To send the data in the Textbox1 to the datasource, Project Information, Put the formula OnSelect of the Button:

            Patch( 'Project Information', Defaults('Project Information'),
         {'Project Location': Textbox1.Text } )

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • karimabdelrazek Profile Picture
    292 on at
    Re: Pass selected item from a collection to a field in an entity

    Hi @eka24 . Screenshot attached with what I'm hoping to accomplish as well. Thanks so much for taking the time!

  • eka24 Profile Picture
    20,921 on at
    Re: Pass selected item from a collection to a field in an entity

    If the fields are on a Form example Form1, then insert a button on your screen.

    On the OnSelect property of the button, put: SubmitForm(Form1)

    When you click on the button, whatever you have on the form would be sent to the entity

     

    Give a screen shot if you have issues.

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • karimabdelrazek Profile Picture
    292 on at
    Re: Pass selected item from a collection to a field in an entity

    Hi @eka24 . Thank you for your reply and sorry. I'm still new to this. At what point does the "Dropdown1.Selected.Value" pass the selection to my field called "Location" in my "Organization Information" entity?

  • eka24 Profile Picture
    20,921 on at
    Re: Pass selected item from a collection to a field in an entity

    Use:
    Dropdown1.Selected.Value

     

    Change Dropdown1 to your actual name

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

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,700 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard